fix pimathmatrix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user