Added function comments
All checks were successful
Merge-Checker / build_and_test (pull_request) Successful in 23s
All checks were successful
Merge-Checker / build_and_test (pull_request) Successful in 23s
This commit is contained in:
@@ -353,7 +353,9 @@ TEST_CASE("Elementary Matrix Operations", "Matrix") {
|
||||
REQUIRE(mat4.Get(0, 1) == 11);
|
||||
REQUIRE(mat4.Get(0, 2) == 12);
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("Advanced Matrix Operations", "Matrix") {
|
||||
SECTION("2x2 QRDecomposition") {
|
||||
Matrix<2, 2> A{1.0f, 2.0f, 3.0f, 4.0f};
|
||||
Matrix<2, 2> Q{}, R{};
|
||||
@@ -392,13 +394,6 @@ TEST_CASE("Elementary Matrix Operations", "Matrix") {
|
||||
Matrix<3, 3> Q{}, R{};
|
||||
A.QRDecomposition(Q, R);
|
||||
|
||||
std::string strBuf1 = "";
|
||||
Q.ToString(strBuf1);
|
||||
std::cout << "Matrix Q:\n" << strBuf1 << std::endl;
|
||||
strBuf1 = "";
|
||||
R.ToString(strBuf1);
|
||||
std::cout << "Matrix R:\n" << strBuf1 << std::endl;
|
||||
|
||||
// Check that Q * R ≈ A
|
||||
Matrix<3, 3> QR{};
|
||||
Q.Mult(R, QR);
|
||||
|
||||
Reference in New Issue
Block a user