From 425444428c366a09cbc7608c89deac7bcf8da621 Mon Sep 17 00:00:00 2001 From: Jitse Niesen Date: Fri, 23 Jul 2010 22:20:00 +0100 Subject: Add examples for API documentation of block methods in DenseBase. --- doc/snippets/MatrixBase_template_int_int_bottomLeftCorner.cpp | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 doc/snippets/MatrixBase_template_int_int_bottomLeftCorner.cpp (limited to 'doc/snippets/MatrixBase_template_int_int_bottomLeftCorner.cpp') diff --git a/doc/snippets/MatrixBase_template_int_int_bottomLeftCorner.cpp b/doc/snippets/MatrixBase_template_int_int_bottomLeftCorner.cpp new file mode 100644 index 000000000..847892a27 --- /dev/null +++ b/doc/snippets/MatrixBase_template_int_int_bottomLeftCorner.cpp @@ -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; -- cgit v1.2.3