Tutorial_range_for_loop_1d_cxx11.cpp
Go to the documentation of this file.
1 VectorXi v = VectorXi::Random(4);
2 cout << "Here is the vector v:\n";
3 for(auto x : v) cout << x << " ";
4 cout << "\n";
Matrix< int, Dynamic, 1 > VectorXi
DynamicĂ—1 vector of type int.
Definition: Matrix.h:500