Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / ground / gcs / src / libs / eigen / doc / snippets / MatrixBase_template_int_start.cpp
blobd336b37160f0ca8e2f06bc6d8585b8191d8ef4a5
1 RowVector4i v = RowVector4i::Random();
2 cout << "Here is the vector v:" << endl << v << endl;
3 cout << "Here is v.head(2):" << endl << v.head<2>() << endl;
4 v.head<2>().setZero();
5 cout << "Now the vector v is:" << endl << v << endl;