Tutorial_range_for_loop_2d_cxx11.cpp
Go to the documentation of this file.
1 Matrix2i A = Matrix2i::Random();
2 cout << "Here are the coeffs of the 2x2 matrix A:\n";
3 for(auto x : A.reshaped())
4  cout << x << " ";
5 cout << "\n";
Matrix< int, 2, 2 > Matrix2i
2×2 matrix of type int.
Definition: Matrix.h:500