mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +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;
|