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_leftCols_int.cpp
Normal file
6
doc/snippets/MatrixBase_leftCols_int.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
Array44i a = Array44i::Random();
|
||||
cout << "Here is the array a:" << endl << a << endl;
|
||||
cout << "Here is a.leftCols(2):" << endl;
|
||||
cout << a.leftCols(2) << endl;
|
||||
a.leftCols(2).setZero();
|
||||
cout << "Now the array a is:" << endl << a << endl;
|
||||
Reference in New Issue
Block a user