Fixes for control systems AND SVD and QR decomposition #9
+1
-1
@@ -531,7 +531,7 @@ void Matrix<rows, columns>::QRDecomposition(Matrix<rows, columns> &Q,
|
|||||||
Q.Fill(0);
|
Q.Fill(0);
|
||||||
R.Fill(0);
|
R.Fill(0);
|
||||||
Matrix<rows, 1> a_col, e, u, Q_column_k{};
|
Matrix<rows, 1> a_col, e, u, Q_column_k{};
|
||||||
Matrix<1, rows> a_T, e_T{};
|
Matrix<1, rows> e_T{};
|
||||||
|
|
||||||
for (uint8_t column = 0; column < columns; column++) {
|
for (uint8_t column = 0; column < columns; column++) {
|
||||||
this->GetColumn(column, a_col);
|
this->GetColumn(column, a_col);
|
||||||
|
|||||||
@@ -76,7 +76,8 @@ TEST_CASE("Timing Tests", "Matrix") {
|
|||||||
|
|
||||||
SECTION("Determinant") {
|
SECTION("Determinant") {
|
||||||
for (uint32_t i{0}; i < 1000000; i++) {
|
for (uint32_t i{0}; i < 1000000; i++) {
|
||||||
float det1 = mat4.Det();
|
float det = mat4.Det();
|
||||||
|
(void)det;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user