aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/MatrixBase_computeInverse.cpp
blob: 4873d0d347a999051de36eea588805c9f219fa0a (plain)
1
2
3
4
5
Matrix3d m = Matrix3d::random();
cout << "Here is the matrix m:" << endl << m << endl;
Matrix3d inv;
m.computeInverse(&inv);
cout << "Its inverse is:" << endl << inv << endl;