diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-01-13 23:17:51 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-01-13 23:17:51 +0000 |
commit | 57d7b7d97bc5f57bcf587708a3647da0dce73fea (patch) | |
tree | 01e336de7065346e984f812e9f3e33d8ea40bfc9 /doc/snippets/MatrixBase_start_int.cpp | |
parent | 6ce996f219170f79f93a21ca86c7f3bd0f425102 (diff) |
documentation update for alpha 3
Diffstat (limited to 'doc/snippets/MatrixBase_start_int.cpp')
-rw-r--r-- | doc/snippets/MatrixBase_start_int.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; |