fix tests and pimathmatrix.h
This commit is contained in:
@@ -769,7 +769,7 @@ public:
|
||||
* @return matrix type _CMatrix
|
||||
*/
|
||||
_CMatrix &setCol(uint index, const PIMathVector<Type> &v) {
|
||||
assert(_V2D::rows == v.size());
|
||||
assert(_V2D::rows() == v.size());
|
||||
PIMM_FOR_R _V2D::element(i, index) = v[i];
|
||||
return *this;
|
||||
}
|
||||
@@ -782,7 +782,7 @@ public:
|
||||
* @return matrix type _CMatrix
|
||||
*/
|
||||
_CMatrix &setRow(uint index, const PIMathVector<Type> &v) {
|
||||
assert(_V2D::cols == v.size());
|
||||
assert(_V2D::cols() == v.size());
|
||||
PIMM_FOR_C _V2D::element(index, i) = v[i];
|
||||
return *this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user