From 9726ebbca05c5ee84837662dbc0cff10f0464a31 Mon Sep 17 00:00:00 2001 From: Quinn Date: Tue, 4 Feb 2025 22:06:34 -0500 Subject: [PATCH] Fixed typo and missing include --- src/Matrix.cpp | 3 ++- src/Matrix.hpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Matrix.cpp b/src/Matrix.cpp index 7bc1975..0d1fad6 100644 --- a/src/Matrix.cpp +++ b/src/Matrix.cpp @@ -6,6 +6,7 @@ #include #include #include +#include template Matrix::Matrix(float value) @@ -104,7 +105,7 @@ Matrix::Sub(const Matrix &other, template template -Matrix & +Matrix & Matrix::Mult(const Matrix &other, Matrix &result) const { diff --git a/src/Matrix.hpp b/src/Matrix.hpp index 644aedf..2dd0d2a 100644 --- a/src/Matrix.hpp +++ b/src/Matrix.hpp @@ -67,8 +67,8 @@ public: * @param result A buffer to store the result into */ template - Matrix &Mult(const Matrix &other, - Matrix &result) const; + Matrix &Mult(const Matrix &other, + Matrix &result) const; /** * @brief Multiply the matrix by a scalar