00001 Matrix3d m = Matrix3d::Random(); 00002 cout << "Here is the matrix m:" << endl << m << endl; 00003 Matrix3d inverse; 00004 bool invertible; 00005 m.computeInverseWithCheck(inverse,invertible); 00006 if(invertible) { 00007 cout << "It is invertible, and its inverse is:" << endl << inverse << endl; 00008 } 00009 else { 00010 cout << "It is not invertible." << endl; 00011 }