2023-12-06 05:22:55 +08:00
|
|
|
MatrixXcf A = MatrixXcf::Random(4, 4);
|
2010-03-24 21:04:03 +08:00
|
|
|
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;
|