Fixed typo and missing include

This commit is contained in:
2025-02-04 22:06:34 -05:00
parent ab2d9f002b
commit 9726ebbca0
2 changed files with 4 additions and 3 deletions

View File

@@ -6,6 +6,7 @@
#include <cmath> #include <cmath>
#include <cstdlib> #include <cstdlib>
#include <type_traits> #include <type_traits>
#include <cstring>
template <uint8_t rows, uint8_t columns> template <uint8_t rows, uint8_t columns>
Matrix<rows, columns>::Matrix(float value) Matrix<rows, columns>::Matrix(float value)
@@ -104,7 +105,7 @@ Matrix<rows, columns>::Sub(const Matrix<rows, columns> &other,
template <uint8_t rows, uint8_t columns> template <uint8_t rows, uint8_t columns>
template <uint8_t other_columns> template <uint8_t other_columns>
Matrix<rows, columns> & Matrix<rows, other_columns> &
Matrix<rows, columns>::Mult(const Matrix<columns, other_columns> &other, Matrix<rows, columns>::Mult(const Matrix<columns, other_columns> &other,
Matrix<rows, other_columns> &result) const Matrix<rows, other_columns> &result) const
{ {

View File

@@ -67,7 +67,7 @@ public:
* @param result A buffer to store the result into * @param result A buffer to store the result into
*/ */
template <uint8_t other_columns> template <uint8_t other_columns>
Matrix<rows, columns> &Mult(const Matrix<columns, other_columns> &other, Matrix<rows, other_columns> &Mult(const Matrix<columns, other_columns> &other,
Matrix<rows, other_columns> &result) const; Matrix<rows, other_columns> &result) const;
/** /**