doc correction
This commit is contained in:
@@ -38,31 +38,22 @@ bool cmpMatrixWithValue(PIMathMatrixT<rows, cols, double> matrix, double val)
|
||||
|
||||
TEST(PIMathMatrixT_Test, identity)
|
||||
{
|
||||
PIMathMatrixT<rows, cols, double> matr;
|
||||
PIMathMatrixT<rows, cols, double> matrix;
|
||||
double d;
|
||||
double i = 1.0;
|
||||
bool a;
|
||||
bool output;
|
||||
matrix = matr.identity();
|
||||
d = matrix.determinant();
|
||||
uint j;
|
||||
for(j = 0; j < cols; j++)
|
||||
{
|
||||
if(matrix.at(i, i) == 1.0) a = true;
|
||||
else
|
||||
{
|
||||
a = false;
|
||||
break;
|
||||
auto matrix = PIMathMatrixT<rows, cols, double>::identity();
|
||||
for(int i = 0; i < 3; i++){
|
||||
if(matrix[i][i] != 1.0){
|
||||
ASSERT_TRUE(false);
|
||||
}
|
||||
}
|
||||
if((i == d) && (a == true)){
|
||||
output = true;
|
||||
for(int i = 0; i < 3; i++){
|
||||
for(int j = 0; j < 3; j++){
|
||||
if(i != j){
|
||||
if(matrix[i][j] != 0.0){
|
||||
ASSERT_TRUE(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
output = false;
|
||||
}
|
||||
ASSERT_TRUE(output);
|
||||
ASSERT_TRUE(true);
|
||||
}
|
||||
|
||||
TEST(PIMathMatrixT_Test, at)
|
||||
|
||||
Reference in New Issue
Block a user