doc correction

This commit is contained in:
Шишов Максим Денисович
2020-09-08 16:05:22 +03:00
parent f1a0a3ec4a
commit 05a32ccf1a
3 changed files with 530 additions and 388 deletions

View File

@@ -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)