Benoit Jacob | 7b75018 | 2009-06-29 22:07:37 +0200 | [diff] [blame] | 1 | Matrix3d m = Matrix3d::Random(); |
2 | cout << "Here is the matrix m:" << endl << m << endl; | ||||
3 | Matrix3d inv; | ||||
4 | if(m.computeInverseWithCheck(&inv)) { | ||||
5 | cout << "It is invertible, and its inverse is:" << endl << inv << endl; | ||||
6 | } | ||||
7 | else { | ||||
8 | cout << "It is not invertible." << endl; | ||||
9 | } |