From 57d7b7d97bc5f57bcf587708a3647da0dce73fea Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Sun, 13 Jan 2008 23:17:51 +0000 Subject: documentation update for alpha 3 --- doc/snippets/MatrixBase_start_int.cpp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 doc/snippets/MatrixBase_start_int.cpp (limited to 'doc/snippets/MatrixBase_start_int.cpp') diff --git a/doc/snippets/MatrixBase_start_int.cpp b/doc/snippets/MatrixBase_start_int.cpp new file mode 100644 index 000000000..cee28f329 --- /dev/null +++ b/doc/snippets/MatrixBase_start_int.cpp @@ -0,0 +1,5 @@ +RowVector4i v = RowVector4i::random(); +cout << "Here is the vector v:" << endl << v << endl; +cout << "Here is v.start(2):" << endl << v.start(2) << endl; +v.start(2).setZero(); +cout << "Now the vector v is:" << endl << v << endl; -- cgit v1.2.3