Add Matrix-Vector and Matrix-Matrix product

function mul to Matrix class.
This commit is contained in:
kradchen
2023-05-16 10:00:53 +08:00
parent 0148966137
commit b2bacd8894
3 changed files with 125 additions and 0 deletions

View File

@@ -169,6 +169,23 @@ namespace Aurora {
friend Matrix operator==(double aScalar, const Matrix &matrix);
Matrix operator==(const Matrix &matrix) const;
/**
* 矩阵乘法
* @attention 目前只支持矩阵乘向量
* @param aOther
* @return Matrix
*/
Matrix mul(const Matrix& aOther);
/**
* 矩阵乘法
* @attention 目前只支持矩阵乘向量
* @param aOther
* @return Matrix
*/
Matrix mul(Matrix&& aOther);
/**
* print matrix , only support 2d matrix now
*/