diff --git a/src/Matrix.cpp b/src/Matrix.cpp index 0d1fad6..9691aa5 100644 --- a/src/Matrix.cpp +++ b/src/Matrix.cpp @@ -111,8 +111,8 @@ Matrix::Mult(const Matrix &other, { // allocate some buffers for all of our dot products Matrix<1, columns> this_row; - Matrix other_column; - Matrix<1, rows> other_column_t; + Matrix other_column; + Matrix<1, columns> other_column_t; for (uint8_t row_idx{0}; row_idx < rows; row_idx++) { @@ -371,10 +371,11 @@ operator-(const Matrix &other) const } template -Matrix Matrix:: -operator*(const Matrix &other) const +template +Matrix Matrix:: +operator*(const Matrix &other) const { - Matrix buffer{}; + Matrix buffer{}; this->Mult(other, buffer); return buffer; } diff --git a/src/Matrix.hpp b/src/Matrix.hpp index 2dd0d2a..814cd66 100644 --- a/src/Matrix.hpp +++ b/src/Matrix.hpp @@ -181,7 +181,8 @@ public: Matrix operator-(const Matrix &other) const; - Matrix operator*(const Matrix &other) const; + template + Matrix operator*(const Matrix &other) const; Matrix operator*(float scalar) const;