source:
pacpussensors/trunk/Vislab/lib3dv/eigen/doc/snippets/FullPivLU_kernel.cpp@
138
Last change on this file since 138 was 136, checked in by , 8 years ago | |
---|---|
File size: 317 bytes |
Line | |
---|---|
1 | MatrixXf m = MatrixXf::Random(3,5); |
2 | cout << "Here is the matrix m:" << endl << m << endl; |
3 | MatrixXf ker = m.fullPivLu().kernel(); |
4 | cout << "Here is a matrix whose columns form a basis of the kernel of m:" |
5 | << endl << ker << endl; |
6 | cout << "By definition of the kernel, m*ker is zero:" |
7 | << endl << m*ker << endl; |
Note:
See TracBrowser
for help on using the repository browser.