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