blob: a7b084fd00e71d6a0d2638d81d1cf79ae927aaa2 [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;
5double determinant;
6m.computeInverseAndDetWithCheck(inverse,determinant,invertible);
7cout << "Its determinant is " << determinant << endl;
8if(invertible) {
9 cout << "It is invertible, and its inverse is:" << endl << inverse << endl;
10}
11else {
12 cout << "It is not invertible." << endl;
13}