Benoit Jacob | 486fdb2 | 2008-05-29 03:12:30 +0000 | [diff] [blame] | 1 | Matrix2d m = Matrix2d::random(); |
2 | cout << "Here is the matrix m:" << endl << m << endl; | ||||
3 | Matrix2d::InverseType m_inv = m.inverse(); | ||||
4 | if(m_inv.exists()) | ||||
5 | cout << "m is invertible, and its inverse is:" << endl << m_inv << endl; | ||||
6 | else | ||||
7 | cout << "m is not invertible." << endl; |