fix pimathmatrix

This commit is contained in:
2020-10-19 17:59:52 +03:00
parent ff6d5cedaa
commit 6789d068e3

View File

@@ -882,7 +882,7 @@ public:
*
* @param cols is number of matrix column uint type
* @param rows is number of matrix row uint type
* @return identity matrix of type PIMathMatrix
* @return identity matrix(cols,rows)
*/
static _CMatrix identity(const uint cols, const uint rows) {
_CMatrix tm(cols, rows);
@@ -890,9 +890,17 @@ public:
return tm;
}
/**
* @brief Creates a matrix filled by zeros
*
* @param cols is number of matrix column uint type
* @param rows is number of matrix row uint type
* @return zero matrix(cols,rows)
*/
static _CMatrix zero(const uint cols, const uint rows) {
_V2D::resize(rows, cols);
fill(Type(0));
_CMatrix tm(cols, rows);
tm.fill(Type(0));
return tm;
}
/**