PIMathVector Tests and bug fixes in PIMathMatrixT

This commit is contained in:
2020-09-17 17:07:29 +03:00
parent aae59106f0
commit c3abd747f2
6 changed files with 870 additions and 3058 deletions

View File

@@ -106,9 +106,9 @@ TEST(PIMathMatrixT_Test, row) {
TEST(PIMathMatrixT_Test, setCol) {
PIMathMatrixT<rows, cols, double> matr;
PIMathVectorT<rows, double> vect;
vect.at(0) = 1.0;
vect.at(1) = 3.0;
vect.at(2) = 5.0;
vect[0] = 1.0;
vect[1] = 3.0;
vect[2] = 5.0;
uint g = 1;
matr.setCol(g, vect);
for(uint i = 0; i < vect.size(); i++) {
@@ -122,9 +122,9 @@ TEST(PIMathMatrixT_Test, setCol) {
TEST(PIMathMatrixT_Test, setRow) {
PIMathMatrixT<rows, cols, double> matr;
PIMathVectorT<rows, double> vect;
vect.at(0) = 1.0;
vect.at(1) = 3.0;
vect.at(2) = 5.0;
vect[0] = 1.0;
vect[1] = 3.0;
vect[2] = 5.0;
uint g = 1;
matr.setRow(g, vect);
for(uint i = 0; i < vect.size(); i++) {