1RowVector4i v = RowVector4i::Random();
2cout << "Here is the vector v:" << endl << v << endl;
3cout << "Here is v.head(2):" << endl << v.head<2>() << endl;
4v.head<2>().setZero();
5cout << "Now the vector v is:" << endl << v << endl;
6