RowVectorXf v = RowVectorXf::LinSpaced(20,0,19); cout << "Input:" << endl << v << endl; Map > v2(v.data(), v.size()/2); cout << "Even:" << v2 << endl;