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