blob: b7b204a18a857a8d5d64fc08bbdca8331b13485f [file] [log] [blame]
Brian Silverman72890c22015-09-19 14:37:37 -04001Matrix3f m = Matrix3f::Random();
2Matrix3f y = Matrix3f::Random();
3cout << "Here is the matrix m:" << endl << m << endl;
4cout << "Here is the matrix y:" << endl << y << endl;
5Matrix3f x;
6x = m.colPivHouseholderQr().solve(y);
7assert(y.isApprox(m*x));
8cout << "Here is a solution x to the equation mx=y:" << endl << x << endl;