I have a matrix class and I want to overload the *
operator in c++ to multiply a scalar to the matrix.. I am able to achieve..
matrix1 * matrix2
matrix1 * 5
but I also want 5 * matrix1
to work.
How to achieve this.. Idk what to search for this, nothing is coming related :|