MatrixBase_end_int.cpp revision c981c48f5bc9aefeffc0bcb0cc3934c2fae179dd
1RowVector4i v = RowVector4i::Random();
2cout << "Here is the vector v:" << endl << v << endl;
3cout << "Here is v.tail(2):" << endl << v.tail(2) << endl;
4v.tail(2).setZero();
5cout << "Now the vector v is:" << endl << v << endl;
6