blob: 7086e01e2ca9852f7db951978c3671e1afc3eee6 [file] [log] [blame]
Brian Silverman72890c22015-09-19 14:37:37 -04001MatrixXf 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;