xref: /aosp_15_r20/external/eigen/doc/snippets/Tutorial_SlicingVec.cpp (revision bf2c37156dfe67e5dfebd6d394bad8b2ab5804d4)
1*bf2c3715SXin Li RowVectorXf v = RowVectorXf::LinSpaced(20,0,19);
2*bf2c3715SXin Li cout << "Input:" << endl << v << endl;
3*bf2c3715SXin Li Map<RowVectorXf,0,InnerStride<2> > v2(v.data(), v.size()/2);
4*bf2c3715SXin Li cout << "Even:" << v2 << endl;
5