Add operation ^ to Matrix class.

This commit is contained in:
Krad
2023-04-19 11:30:05 +08:00
parent 8eb2d9e1ac
commit e491ce88c2
2 changed files with 10 additions and 0 deletions

View File

@@ -88,6 +88,10 @@ namespace Aurora {
Matrix operator/(Matrix &&matrix) const;
friend Matrix operator/(Matrix &&aMatrix,const Matrix &aOther);
// pow
Matrix operator^(int times) const;
friend Matrix operator^(Matrix &&matrix,int times);
/**
* print matrix , only support 2d matrix now
*/