Closed Modernbeast02 closed 1 year ago
Hi @Modernbeast02, Do the following changes:
matrix.hpp
wherever you have introduced new type G
Matrix<T> operator *=(T num)
to Matrix<T> operator*=(G num)
in matrix.hpp
and update its implementation as well in matrix.cpp
. Do same update for addition and subtraction operator too.const Type &
everywhere.
Matrix<T> operator*(const Matrix<T> &matrix, G num)
but if you see matrix.hpp
the function signature says template <class T> Matrix<T> operator*(Matrix<T>, const T &);
Same goes for operator+
and operator-
too. Matrix<T>
is passed by value and not by reference.
Implemented addition, subtraction, and multiplication of a matrix with a scaler. Resolved Issue #64