mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Add examples for API documentation of block methods in DenseBase.
This commit is contained in:
6
doc/snippets/MatrixBase_bottomLeftCorner_int_int.cpp
Normal file
6
doc/snippets/MatrixBase_bottomLeftCorner_int_int.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user