add the missing templated version of block for sub-vectors

This commit is contained in:
Gael Guennebaud
2008-09-09 09:30:23 +00:00
parent c41ceee750
commit 703539110b
7 changed files with 67 additions and 8 deletions

View File

@@ -0,0 +1,5 @@
RowVector5i v = RowVector5i::Random();
cout << "Here is the vector v:" << endl << v << endl;
cout << "Here is v.block<2>(1):" << endl << v.start<2>() << endl;
v.block<2>(2).setZero();
cout << "Now the vector v is:" << endl << v << endl;