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