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

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

Doc

File size: 317 bytes
Line 
1MatrixXf m = MatrixXf::Random(3,5);
2cout << "Here is the matrix m:" << endl << m << endl;
3MatrixXf ker = m.fullPivLu().kernel();
4cout << "Here is a matrix whose columns form a basis of the kernel of m:"
5 << endl << ker << endl;
6cout << "By definition of the kernel, m*ker is zero:"
7 << endl << m*ker << endl;
Note: See TracBrowser for help on using the repository browser.