Add Matrix-Vector and Matrix-Matrix product
function mul to Matrix class.
This commit is contained in:
17
src/Matrix.h
17
src/Matrix.h
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user