aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-09-13 10:44:23 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-09-13 10:44:23 +0000
commita62bd110a25aae0a2f898013f37bfb3ab379cc55 (patch)
treeca06e252d613f2147a10a5bdae81c9c459a507db
parente5c50afed6f0d7af099ea4a87a160451a706a186 (diff)
fix doc compilation
-rw-r--r--doc/snippets/MatrixBase_template_int.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/snippets/MatrixBase_template_int.cpp b/doc/snippets/MatrixBase_template_int.cpp
index 4041a2214..6bee6d6c5 100644
--- a/doc/snippets/MatrixBase_template_int.cpp
+++ b/doc/snippets/MatrixBase_template_int.cpp
@@ -1,5 +1,5 @@
-RowVector5i v = RowVector5i::Random();
+RowVector4i v = RowVector4i::Random();
cout << "Here is the vector v:" << endl << v << endl;
-cout << "Here is v.block<2>(1):" << endl << v.start<2>() << endl;
+cout << "Here is v.block<2>(1):" << endl << v.block<2>(1) << endl;
v.block<2>(2).setZero();
cout << "Now the vector v is:" << endl << v << endl;