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