diff options
Diffstat (limited to 'doc/snippets/MatrixBase_template_int_bottomRows.cpp')
-rw-r--r-- | doc/snippets/MatrixBase_template_int_bottomRows.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/snippets/MatrixBase_template_int_bottomRows.cpp b/doc/snippets/MatrixBase_template_int_bottomRows.cpp new file mode 100644 index 000000000..f9ea892da --- /dev/null +++ b/doc/snippets/MatrixBase_template_int_bottomRows.cpp @@ -0,0 +1,6 @@ +Array44i a = Array44i::Random(); +cout << "Here is the array a:" << endl << a << endl; +cout << "Here is a.bottomRows<2>():" << endl; +cout << a.bottomRows<2>() << endl; +a.bottomRows<2>().setZero(); +cout << "Now the array a is:" << endl << a << endl; |