mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-20 16:49:38 +08:00
7 lines
271 B
C++
7 lines
271 B
C++
Matrix4i m = Matrix4i::Random();
|
|
cout << "Here is the matrix m:" << endl << m << endl;
|
|
cout << "Here is m.bottomLeftCorner(2, 2):" << endl;
|
|
cout << m.bottomLeftCorner(2, 2) << endl;
|
|
m.bottomLeftCorner(2, 2).setZero();
|
|
cout << "Now the matrix m is:" << endl << m << endl;
|