blob: 6bee6d6c5c4e9ae27c4d4e9d255152b6f754732d [file] [log] [blame]
RowVector4i v = RowVector4i::Random();
cout << "Here is the vector v:" << endl << v << 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;