blob: 873a9f8701f7e7dc7b8e08a5d825495c3db9f854 [file] [log] [blame]
Benoit Jacob7b750182009-06-29 22:07:37 +02001Matrix3d m = Matrix3d::Random();
2cout << "Here is the matrix m:" << endl << m << endl;
Benoit Jacob1f1c04c2009-10-26 14:37:43 -04003Matrix3d inverse;
4bool invertible;
5m.computeInverseWithCheck(inverse,invertible);
6if(invertible) {
7 cout << "It is invertible, and its inverse is:" << endl << inverse << endl;
Benoit Jacob7b750182009-06-29 22:07:37 +02008}
9else {
10 cout << "It is not invertible." << endl;
11}