blob: e01186d3858c7191289d1bfba46c09c3371e9b63 [file] [log] [blame]
Benoit Jacobf04c1cb2008-08-11 21:26:37 +00001MatrixXf m = MatrixXf::Random(3,5);
2cout << "Here is the matrix m:" << endl << m << endl;
3MatrixXf ker = m.lu().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;