aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/ComplexSchur_compute.cpp
diff options
context:
space:
mode:
authorGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2010-03-24 13:04:03 +0000
committerGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2010-03-24 13:04:03 +0000
commit13a1b0ba2797abaa58bea4f8446e5d8e939e66d5 (patch)
tree66e0e5bb80c9068abf38b82fd3331d4a0f33d212 /doc/snippets/ComplexSchur_compute.cpp
parent37e17938e98d0626d779019611f68718192e4c5c (diff)
Add snippets file which should have been added in the previous commit.
Diffstat (limited to 'doc/snippets/ComplexSchur_compute.cpp')
-rw-r--r--doc/snippets/ComplexSchur_compute.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/snippets/ComplexSchur_compute.cpp b/doc/snippets/ComplexSchur_compute.cpp
new file mode 100644
index 000000000..3a5170101
--- /dev/null
+++ b/doc/snippets/ComplexSchur_compute.cpp
@@ -0,0 +1,6 @@
+MatrixXcf A = MatrixXcf::Random(4,4);
+ComplexSchur<MatrixXcf> schur(4);
+schur.compute(A);
+cout << "The matrix T in the decomposition of A is:" << endl << schur.matrixT() << endl;
+schur.compute(A.inverse());
+cout << "The matrix T in the decomposition of A^(-1) is:" << endl << schur.matrixT() << endl;