• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 MatrixXd A = MatrixXd::Random(6,6);
2 cout << "Here is a random 6x6 matrix, A:" << endl << A << endl << endl;
3 
4 RealSchur<MatrixXd> schur(A);
5 cout << "The orthogonal matrix U is:" << endl << schur.matrixU() << endl;
6 cout << "The quasi-triangular matrix T is:" << endl << schur.matrixT() << endl << endl;
7 
8 MatrixXd U = schur.matrixU();
9 MatrixXd T = schur.matrixT();
10 cout << "U * T * U^T = " << endl << U * T * U.transpose() << endl;
11