aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/tut_arithmetic_transpose_conjugate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/snippets/tut_arithmetic_transpose_conjugate.cpp')
-rw-r--r--doc/snippets/tut_arithmetic_transpose_conjugate.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/snippets/tut_arithmetic_transpose_conjugate.cpp b/doc/snippets/tut_arithmetic_transpose_conjugate.cpp
new file mode 100644
index 000000000..88496b22d
--- /dev/null
+++ b/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;
+
+