diff options
Diffstat (limited to 'doc/snippets/ComplexSchur_matrixT.cpp')
-rw-r--r-- | doc/snippets/ComplexSchur_matrixT.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/snippets/ComplexSchur_matrixT.cpp b/doc/snippets/ComplexSchur_matrixT.cpp new file mode 100644 index 000000000..8380571ac --- /dev/null +++ b/doc/snippets/ComplexSchur_matrixT.cpp @@ -0,0 +1,4 @@ +MatrixXcf A = MatrixXcf::Random(4,4); +cout << "Here is a random 4x4 matrix, A:" << endl << A << endl << endl; +ComplexSchur<MatrixXcf> schurOfA(A, false); // false means do not compute U +cout << "The triangular matrix T is:" << endl << schurOfA.matrixT() << endl; |