PIMathMatrix add trace, assert for non square matrix, assert in operator *
This commit is contained in:
@@ -356,20 +356,6 @@ TEST(PIMathMatrixT_Test, determinantIfSquare) {
|
||||
ASSERT_DOUBLE_EQ(i, d);
|
||||
}
|
||||
|
||||
TEST(PIMathMatrixT_Test, determinantIfNotSquare) {
|
||||
PIMathMatrixT<rows, 5u, double> matr;
|
||||
matr.element(0,0) = 3;
|
||||
matr.element(0,1) = 6;
|
||||
matr.element(0,2) = 8;
|
||||
matr.element(1,0) = 2;
|
||||
matr.element(1,1) = 1;
|
||||
matr.element(1,2) = 4;
|
||||
matr.element(2,0) = 6;
|
||||
matr.element(2,1) = 2;
|
||||
matr.element(2,2) = 5;
|
||||
ASSERT_FALSE(matr.determinant());
|
||||
}
|
||||
|
||||
TEST(PIMathMatrixT_Test, invert) {
|
||||
PIMathMatrixT<rows, cols, double> matrix1;
|
||||
PIMathMatrixT<rows, cols, double> matrix2;
|
||||
|
||||
Reference in New Issue
Block a user