source: pacpussensors/trunk/Vislab/lib3dv-1.2.0/lib3dv/eigen/doc/snippets/HessenbergDecomposition_matrixH.cpp

Last change on this file was 136, checked in by ldecherf, 8 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.