[FEAT] Add Normal

This commit is contained in:
NADAL Jean-Baptiste
2024-02-16 16:14:51 +01:00
parent 53cf65fda2
commit 8c75d297a7
7 changed files with 99 additions and 17 deletions

View File

@@ -324,9 +324,7 @@ SCENARIO("Transposing a matrix", "[features/matrices.feature]")
{0, 8, 3, 8}
};
A.transpose();
REQUIRE(A == transposed);
REQUIRE(A.transpose() == transposed);
}
}
}
@@ -337,9 +335,8 @@ SCENARIO("Transposing the identity matrix", "[features/matrices.feature]")
{
GIVEN("A <- transpose(identity_matrix)")
{
Matrix A = Matrix::identity();
Matrix A = Matrix::identity().transpose();
A.transpose();
THEN("A = identity_matrix")
{
REQUIRE(A == Matrix::identity());