diff options
| author | y-jan137 <yousefjan24000@gmail.com> | 2026-03-12 16:40:43 +0300 |
|---|---|---|
| committer | y-jan137 <yousefjan24000@gmail.com> | 2026-03-12 16:40:43 +0300 |
| commit | 38004f74df5b2dbcb07e6ad5ac2272f16882e018 (patch) | |
| tree | 119c13cab68e3f38c77a737a7f15a3dad74c1343 /include/matrix.hpp | |
| parent | 11568ad166dc9312593fa4caf05aaa4a11f21b17 (diff) | |
Add basic ops
Diffstat (limited to 'include/matrix.hpp')
| -rw-r--r-- | include/matrix.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
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 <cstddef> #include <initializer_list> #include <vector> +#include "vector.hpp" namespace linalg { @@ -37,5 +38,11 @@ private: std::vector<double> 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 |