diff options
author | Nao Pross <naopross@thearcway.org> | 2019-10-05 17:59:32 +0200 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2019-10-05 17:59:32 +0200 |
commit | cbcb6aeb1510ee1bd2d67d9d0b285df67f7088b5 (patch) | |
tree | e2e73adfbb34f1ce43986635429f7207519c2815 /test/matrix_example.cpp | |
parent | Implicit convertion to basic_vec to vec2 or vec3 (diff) | |
download | libmm-cbcb6aeb1510ee1bd2d67d9d0b285df67f7088b5.tar.gz libmm-cbcb6aeb1510ee1bd2d67d9d0b285df67f7088b5.zip |
New matrix data model (breaks everything)
Diffstat (limited to 'test/matrix_example.cpp')
-rw-r--r-- | test/matrix_example.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/test/matrix_example.cpp b/test/matrix_example.cpp index a3f0eac..96ba67d 100644 --- a/test/matrix_example.cpp +++ b/test/matrix_example.cpp @@ -32,27 +32,5 @@ int main(int argc, char *argv[]) { std::cout << "a.td() = \n" << a.t(); // or a.trasposed(); std::cout << std::endl; - // square matrix - mm::square_matrix<std::complex<int>, 2> f {{{2, 3}, {1, 4}}, {{6, 1}, {-3, 4}}}; - - std::cout << "Square matrix" << std::endl; - std::cout << "f = \n" << f; - - std::cout << "tr(f) = " << f.tr(); //or f.trace() << std::endl; - - auto ft = f.t(); - std::cout << "after in place transpose f.t(), f = \n" << ft; - std::cout << std::endl; - - auto identity = mm::square_matrix<int, 3>::identity(); - - std::cout << "Identity matrix" << std::endl; - std::cout << "I = \n" << identity; - std::cout << std::endl; - - // vector - - // - return 0; } |