From 38004f74df5b2dbcb07e6ad5ac2272f16882e018 Mon Sep 17 00:00:00 2001 From: y-jan137 Date: Thu, 12 Mar 2026 16:40:43 +0300 Subject: Add basic ops --- include/matrix.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/matrix.hpp') diff --git a/include/matrix.hpp b/include/matrix.hpp index ba3e4ae..d78f814 100644 --- a/include/matrix.hpp +++ b/include/matrix.hpp @@ -3,6 +3,7 @@ #include #include #include +#include "vector.hpp" namespace linalg { @@ -37,5 +38,11 @@ private: std::vector data_; }; +Matrix transpose(const Matrix& matrix); +Matrix operator+(const Matrix& lhs, const Matrix& rhs); +Matrix operator-(const Matrix& lhs, const Matrix& rhs); +Vector operator*(const Matrix& matrix, const Vector& vector); +Matrix operator*(const Matrix& lhs, const Matrix& rhs); + } // namespace linalg -- cgit v1.2.3