blob: 873a9f8701f7e7dc7b8e08a5d825495c3db9f854 [file] [log] [blame]
Brian Silverman72890c22015-09-19 14:37:37 -04001Matrix3d m = Matrix3d::Random();
2cout << "Here is the matrix m:" << endl << m << endl;
3Matrix3d inverse;
4bool invertible;
5m.computeInverseWithCheck(inverse,invertible);
6if(invertible) {
7 cout << "It is invertible, and its inverse is:" << endl << inverse << endl;
8}
9else {
10 cout << "It is not invertible." << endl;
11}