xref: /aosp_15_r20/external/eigen/doc/snippets/ComplexSchur_matrixU.cpp (revision bf2c37156dfe67e5dfebd6d394bad8b2ab5804d4)
1 MatrixXcf A = MatrixXcf::Random(4,4);
2 cout << "Here is a random 4x4 matrix, A:" << endl << A << endl << endl;
3 ComplexSchur<MatrixXcf> schurOfA(A);
4 cout << "The unitary matrix U is:" << endl << schurOfA.matrixU() << endl;
5