MatrixBase_template_int_start.cpp revision c981c48f5bc9aefeffc0bcb0cc3934c2fae179dd
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