I'm currently coding a class to make a bunch of matrices operations, and one of them is to multiply a matrix with a number. I successfully made Matrix * 2 p.e. but I want to do 2 * Matrix. Is that possible? And how?
This is the signature of the first operator overloading (Matrix * double) :
Matrix Matrix::operator* (const double& b)