aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/tut_arithmetic_transpose_conjugate.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-06-28 00:05:11 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-06-28 00:05:11 +0200
commitde1220aa62b8ec06dc608e86e023ce2b25658642 (patch)
tree6ef440698ac6f546a91fabe80f4ba7a13dde079a /doc/snippets/tut_arithmetic_transpose_conjugate.cpp
parentca29620e25be0d4a5f6dccd9a4c5c4c649cee35c (diff)
add a Transposition section in page 2
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;
+
+