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

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

Doc

File size: 300 bytes
Line 
1MatrixXf A(MatrixXf::Random(5,3)), thinQ(MatrixXf::Identity(5,3)), Q;
2A.setRandom();
3HouseholderQR<MatrixXf> qr(A);
4Q = qr.householderQ();
5thinQ = qr.householderQ() * thinQ;
6std::cout << "The complete unitary matrix Q is:\n" << Q << "\n\n";
7std::cout << "The thin matrix Q is:\n" << thinQ << "\n\n";
Note: See TracBrowser for help on using the repository browser.