Cloned library Eigen-3.4.0 with extra build files for internal package management.
 
 
 
 
 
 

5 lines
226 B

RowVector4i v = RowVector4i::Random();
cout << "Here is the vector v:" << endl << v << endl;
cout << "Here is v.head(2):" << endl << v.head(2) << endl;
v.head(2).setZero();
cout << "Now the vector v is:" << endl << v << endl;