xref: /aosp_15_r20/external/eigen/doc/snippets/MatrixBase_end_int.cpp (revision bf2c37156dfe67e5dfebd6d394bad8b2ab5804d4)
1 RowVector4i v = RowVector4i::Random();
2 cout << "Here is the vector v:" << endl << v << endl;
3 cout << "Here is v.tail(2):" << endl << v.tail(2) << endl;
4 v.tail(2).setZero();
5 cout << "Now the vector v is:" << endl << v << endl;
6