From 45f12ba19761024d335407793ffb8d4823b28149 Mon Sep 17 00:00:00 2001 From: justanothercatgirl Date: Tue, 15 Apr 2025 00:51:40 +0300 Subject: Started doing 207 --- libprakpp/include/prakmatrix.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libprakpp/include/prakmatrix.hpp') diff --git a/libprakpp/include/prakmatrix.hpp b/libprakpp/include/prakmatrix.hpp index 53d3b4b..f1ccddc 100644 --- a/libprakpp/include/prakmatrix.hpp +++ b/libprakpp/include/prakmatrix.hpp @@ -14,7 +14,7 @@ struct dimension_error : public std::logic_error { }; /// A class to represent a matrix. Works as an extension to std::vector, so all methods of std::vector are available on this class -/// BIG TODO: replave `throw` with `std::optional` return type +/// BIG TODO: replace `throw` with `std::optional` return type template struct matrix : public std::vector { size_t rows, cols; @@ -75,7 +75,7 @@ struct matrix : public std::vector { } /// multiply matrix by a scalar template - std::enable_if_t, struct matrix> + std::enable_if_t, struct matrix>::type operator*(const Arg other) const { struct matrix ret(rows, cols); for (size_t i = 0; i < this->size(); ++i) -- cgit v1.2.3-70-g09d2