aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/MatrixBase_computeInverse.cpp
blob: ba7377a4a6f501ecf49de2dbce0dd0dfab7632eb (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;