From 247f2b0ffa734d2133db9bb81a48cb4b5620d145 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 15 Sep 2008 15:45:41 +0000 Subject: * block() for vectors ---> segment() * documentation improvements, especially in quickstart guide --- doc/snippets/MatrixBase_block_int_int.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/snippets/MatrixBase_block_int_int.cpp') 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; -- cgit v1.2.3