xref: /aosp_15_r20/external/eigen/doc/snippets/Tutorial_range_for_loop_2d_cxx11.cpp (revision bf2c37156dfe67e5dfebd6d394bad8b2ab5804d4)
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";
6