diff options
author | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2013-06-18 14:29:15 +0100 |
---|---|---|
committer | Jitse Niesen <jitse@maths.leeds.ac.uk> | 2013-06-18 14:29:15 +0100 |
commit | e37ff98bbb21f2ee44c6d912002ddf2cdf05ccda (patch) | |
tree | 0d87adfe2a6bcad28a302afe6ab738603c0ad9bc /doc/snippets/MatrixBase_template_int_int_topLeftCorner_int_int.cpp | |
parent | 05da15bf40a32a3a8f10c44b1b9f4d2b496e1ace (diff) |
Implement mixed static/dynamic-size .block() (bug #579)
Diffstat (limited to 'doc/snippets/MatrixBase_template_int_int_topLeftCorner_int_int.cpp')
-rw-r--r-- | doc/snippets/MatrixBase_template_int_int_topLeftCorner_int_int.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/snippets/MatrixBase_template_int_int_topLeftCorner_int_int.cpp b/doc/snippets/MatrixBase_template_int_int_topLeftCorner_int_int.cpp new file mode 100644 index 000000000..fac761f63 --- /dev/null +++ b/doc/snippets/MatrixBase_template_int_int_topLeftCorner_int_int.cpp @@ -0,0 +1,6 @@ +Matrix4i m = Matrix4i::Random(); +cout << "Here is the matrix m:" << endl << m << endl; +cout << "Here is m.topLeftCorner<2,Dynamic>(2,2):" << endl; +cout << m.topLeftCorner<2,Dynamic>(2,2) << endl; +m.topLeftCorner<2,Dynamic>(2,2).setZero(); +cout << "Now the matrix m is:" << endl << m << endl; |