RealSchur_RealSchur_MatrixType.cpp
Go to the documentation of this file.
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;
cout<< "Here is a random 6x6 matrix, A:"<< endl<< A<< endl<< endl;RealSchur< MatrixXd > schur(A)
Matrix< double, Dynamic, Dynamic > MatrixXd
Dynamic×Dynamic matrix of type double.
Definition: Matrix.h:502