fix tests and pimathmatrix.h

This commit is contained in:
2020-10-22 18:56:01 +03:00
parent 85dc0a4dc4
commit fa85f414db
3 changed files with 794 additions and 853 deletions

View File

@@ -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;
}