blob: 23bc0749d5c25beab69a9f421bbaa2414ed64251 [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.fullPivHouseholderQr().solve(y);
7assert(y.isApprox(m*x));
8cout << "Here is a solution x to the equation mx=y:" << endl << x << endl;