source: pacpussensors/trunk/Vislab/lib3dv/eigen/doc/snippets/MatrixBase_segment_int_int.cpp@ 136

Last change on this file since 136 was 136, checked in by ldecherf, 7 years ago

Doc

File size: 244 bytes
Line 
1RowVector4i v = RowVector4i::Random();
2cout << "Here is the vector v:" << endl << v << endl;
3cout << "Here is v.segment(1, 2):" << endl << v.segment(1, 2) << endl;
4v.segment(1, 2).setZero();
5cout << "Now the vector v is:" << endl << v << endl;
Note: See TracBrowser for help on using the repository browser.