Add Matrix mul operator const define.
This commit is contained in:
@@ -838,7 +838,7 @@ namespace Aurora {
|
|||||||
return Matrix::New(newBuffer,aMatrix);
|
return Matrix::New(newBuffer,aMatrix);
|
||||||
}
|
}
|
||||||
|
|
||||||
Matrix Matrix::mul(const Matrix& aOther){
|
Matrix Matrix::mul(const Matrix& aOther) const {
|
||||||
if (isNull() || aOther.isNull()){
|
if (isNull() || aOther.isNull()){
|
||||||
std::cerr<<"Mul operation fail, Matrix is null!"<<std::endl;
|
std::cerr<<"Mul operation fail, Matrix is null!"<<std::endl;
|
||||||
return Matrix();
|
return Matrix();
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ namespace Aurora {
|
|||||||
* @param aOther
|
* @param aOther
|
||||||
* @return Matrix
|
* @return Matrix
|
||||||
*/
|
*/
|
||||||
Matrix mul(const Matrix& aOther);
|
Matrix mul(const Matrix& aOther) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 矩阵乘法
|
* 矩阵乘法
|
||||||
@@ -187,7 +187,7 @@ namespace Aurora {
|
|||||||
* @param aOther
|
* @param aOther
|
||||||
* @return Matrix
|
* @return Matrix
|
||||||
*/
|
*/
|
||||||
Matrix mul(Matrix&& aOther);
|
Matrix mul(Matrix&& aOther) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* print matrix , only support 2d matrix now
|
* print matrix , only support 2d matrix now
|
||||||
|
|||||||
Reference in New Issue
Block a user