diff options
Diffstat (limited to 'eigen/doc/snippets/tut_arithmetic_transpose_conjugate.cpp')
-rw-r--r-- | eigen/doc/snippets/tut_arithmetic_transpose_conjugate.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/eigen/doc/snippets/tut_arithmetic_transpose_conjugate.cpp b/eigen/doc/snippets/tut_arithmetic_transpose_conjugate.cpp new file mode 100644 index 0000000..88496b2 --- /dev/null +++ b/eigen/doc/snippets/tut_arithmetic_transpose_conjugate.cpp @@ -0,0 +1,12 @@ +MatrixXcf a = MatrixXcf::Random(2,2); +cout << "Here is the matrix a\n" << a << endl; + +cout << "Here is the matrix a^T\n" << a.transpose() << endl; + + +cout << "Here is the conjugate of a\n" << a.conjugate() << endl; + + +cout << "Here is the matrix a^*\n" << a.adjoint() << endl; + + |