source: pacpussensors/trunk/Vislab/lib3dv/eigen/doc/snippets/HessenbergDecomposition_matrixH.cpp@ 136

Last change on this file since 136 was 136, checked in by ldecherf, 7 years ago

Doc

File size: 391 bytes
Line 
1Matrix4f A = MatrixXf::Random(4,4);
2cout << "Here is a random 4x4 matrix:" << endl << A << endl;
3HessenbergDecomposition<MatrixXf> hessOfA(A);
4MatrixXf H = hessOfA.matrixH();
5cout << "The Hessenberg matrix H is:" << endl << H << endl;
6MatrixXf Q = hessOfA.matrixQ();
7cout << "The orthogonal matrix Q is:" << endl << Q << endl;
8cout << "Q H Q^T is:" << endl << Q * H * Q.transpose() << endl;
Note: See TracBrowser for help on using the repository browser.