diff options
| author | y-jan137 <yousefjan24000@gmail.com> | 2026-04-27 07:24:41 +0300 |
|---|---|---|
| committer | y-jan137 <yousefjan24000@gmail.com> | 2026-04-27 07:24:41 +0300 |
| commit | 4602b36e9d5ea08656e3222846a1f161bbb1cec1 (patch) | |
| tree | 87618f154f7ebe91657ba1501d695d45a31e7881 /tests/test_matrix.cpp | |
| parent | b8bc28c70a6f2b0e7de81e85a796303d514df008 (diff) | |
Module refactor
Diffstat (limited to 'tests/test_matrix.cpp')
| -rw-r--r-- | tests/test_matrix.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/tests/test_matrix.cpp b/tests/test_matrix.cpp index fcd3d27..2fd9a5e 100644 --- a/tests/test_matrix.cpp +++ b/tests/test_matrix.cpp @@ -1,15 +1,11 @@ -#include "linalg_error.hpp" -#include "matrix.hpp" +import linalgebra; #include <catch2/catch_approx.hpp> #include <catch2/catch_test_macros.hpp> -#include <type_traits> -#include <utility> - -using linalg::Matrix; -using linalg::Vector; -using linalg::DimensionMismatchError; +using linalgebra::Matrix; +using linalgebra::Vector; +using linalgebra::DimensionMismatchError; TEST_CASE("Matrix constructors initialize dimensions and values", "[matrix]") { const Matrix empty; @@ -101,7 +97,7 @@ TEST_CASE("Matrix initializer list rejects unequal row lengths", "[matrix]") { TEST_CASE("Matrix transpose swaps rows and columns", "[matrix]") { const Matrix a{{1.0, 2.0, 3.0}, {4.0, 5.0, 6.0}}; - const Matrix at = linalg::transpose(a); + const Matrix at = linalgebra::transpose(a); REQUIRE(at.rows() == 3); REQUIRE(at.cols() == 2); |