From 21030b554ca682d4bccb7054da3c99163da03fb8 Mon Sep 17 00:00:00 2001 From: sunwen Date: Tue, 16 May 2023 11:11:02 +0800 Subject: [PATCH] Add Matrix mul operator const define. --- src/Matrix.cpp | 2 +- src/Matrix.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Matrix.cpp b/src/Matrix.cpp index f73901e..a90338e 100644 --- a/src/Matrix.cpp +++ b/src/Matrix.cpp @@ -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!"<