diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-09-15 15:45:41 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-09-15 15:45:41 +0000 |
commit | 247f2b0ffa734d2133db9bb81a48cb4b5620d145 (patch) | |
tree | 44610107cad4e0508177cad78d490c5dd6f427d2 /doc/snippets/MatrixBase_block_int_int.cpp | |
parent | 0940ad7127474dc0b6e5e271502988cb7141843a (diff) |
* block() for vectors ---> segment()
* documentation improvements, especially in quickstart guide
Diffstat (limited to 'doc/snippets/MatrixBase_block_int_int.cpp')
-rw-r--r-- | doc/snippets/MatrixBase_block_int_int.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/snippets/MatrixBase_block_int_int.cpp b/doc/snippets/MatrixBase_block_int_int.cpp index 974f86b54..f99b6d4ca 100644 --- a/doc/snippets/MatrixBase_block_int_int.cpp +++ b/doc/snippets/MatrixBase_block_int_int.cpp @@ -1,5 +1,5 @@ -RowVector4i v = RowVector4i::Random(); -cout << "Here is the vector v:" << endl << v << endl; -cout << "Here is v.block(1, 2):" << endl << v.block(1, 2) << endl; -v.block(1, 2).setZero(); -cout << "Now the vector v is:" << endl << v << endl; +Matrix4i m = Matrix4i::Random(); +cout << "Here is the matrix m:" << endl << m << endl; +cout << "Here is m.block<2,2>(1,1):" << endl << m.block<2,2>(1,1) << endl; +m.block<2,2>(1,1).setZero(); +cout << "Now the matrix m is:" << endl << m << endl; |