aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/MatrixBase_quickInverse.cpp
blob: cf0575f8e27aec2036712c88c88fe2348b711a7b (plain)
1
2
3
4
5
Matrix4d m = Matrix4d::zero();
m.part<Eigen::Upper>().setOnes();
cout << "Here is the matrix m:" << endl << m << endl;
cout << "We know for sure that it is invertible." << endl;
cout << "Here is its inverse:" << m.quickInverse() << endl;