aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/MatrixBase_template_int_end.cpp
blob: eb6990167e64e36c30ebc2e292559a850c7503ba (plain)
1
2
3
4
5
RowVector4i v = RowVector4i::random();
cout << "Here is the vector v:" << endl << v << endl;
cout << "Here is v.end(2):" << endl << v.end<2>() << endl;
v.end<2>().setZero();
cout << "Now the vector v is:" << endl << v << endl;