I have this defined in my class
Matrix& operator^(int&); // in class Matrix
Matrix& Matrix :: operator^(int n)
{
Matrix M = *this;
for(int i=0; i<n-1; i++)
M = M * (*this);
Type: Posts; User: heyo
I have this defined in my class
Matrix& operator^(int&); // in class Matrix
Matrix& Matrix :: operator^(int n)
{
Matrix M = *this;
for(int i=0; i<n-1; i++)
M = M * (*this);