mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-19 08:09:36 +08:00
6 lines
238 B
C++
6 lines
238 B
C++
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;
|