diff --git a/matrix.hpp b/matrix.hpp index 7a8b8b8f..1da6cbee 100644 --- a/matrix.hpp +++ b/matrix.hpp @@ -36,13 +36,13 @@ namespace util { template < std::size_t Rows, std::size_t Cols, - typename T + typename ValueT > struct matrix { static constexpr auto rows = Rows; static constexpr auto cols = Cols; - using row_t = util::vector; + using row_t = util::vector; /////////////////////////////////////////////////////////////////////// @@ -50,10 +50,10 @@ namespace util { //--------------------------------------------------------------------- - constexpr matrix (const T(&_data)[Rows][Cols]) noexcept: + constexpr matrix (const ValueT(&_data)[Rows][Cols]) noexcept: values {} { - static_assert (sizeof (*this) == sizeof (T) * Rows * Cols); + static_assert (sizeof (*this) == sizeof (ValueT) * Rows * Cols); for (std::size_t r = 0; r < Rows; ++r) for (std::size_t c = 0; c < Cols; ++c) values[r][c] = _data[r][c]; @@ -62,7 +62,7 @@ namespace util { //--------------------------------------------------------------------- template - constexpr matrix (const util::coord::base (&_data)[Rows]) noexcept + constexpr matrix (const util::coord::base (&_data)[Rows]) noexcept { for (std::size_t r = 0; r < Rows; ++r) for (std::size_t c = 0; c < Cols; ++c) @@ -135,7 +135,7 @@ namespace util { /////////////////////////////////////////////////////////////////////// - T determinant (void) const; + ValueT determinant (void) const; matrix inverse (void) const;