Add operation ^ to Matrix class.
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user