Tutorial_SlicingVec.cpp (180B)
1 RowVectorXf v = RowVectorXf::LinSpaced(20,0,19); 2 cout << "Input:" << endl << v << endl; 3 Map<RowVectorXf,0,InnerStride<2> > v2(v.data(), v.size()/2); 4 cout << "Even:" << v2 << endl;
cart-elcSource code for CART-ELC | |
| git clone git://git.laack.co/cart-elc.git | |
| Log | Files | Refs | README | LICENSE |