PIMathVector Tests and bug fixes in PIMathMatrixT
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user