source:
pacpussensors/trunk/Vislab/lib3dv-1.2.0/lib3dv/eigen/doc/snippets/HouseholderQR_householderQ.cpp
Last change on this file was 136, checked in by , 8 years ago | |
---|---|
File size: 300 bytes |
Line | |
---|---|
1 | MatrixXf A(MatrixXf::Random(5,3)), thinQ(MatrixXf::Identity(5,3)), Q; |
2 | A.setRandom(); |
3 | HouseholderQR<MatrixXf> qr(A); |
4 | Q = qr.householderQ(); |
5 | thinQ = qr.householderQ() * thinQ; |
6 | std::cout << "The complete unitary matrix Q is:\n" << Q << "\n\n"; |
7 | std::cout << "The thin matrix Q is:\n" << thinQ << "\n\n"; |
Note:
See TracBrowser
for help on using the repository browser.