I would like to select a part of a vector in C++ with the library Eigen?
I mean if I have this vector :
VectorXd v(6);
v << 1, 2, 3, 8, 1, 2;
Is there a function which returns this vector:
a << 2, 8, 2;
?
Because I know how to select just a part of a vector but only with a step of one not two.