Sign in
eigen
/
mirror
/
90dfbc054ed49f7999e506ccd0d8436a61261395
/
.
/
doc
/
snippets
/
Tutorial_range_for_loop_2d.cpp
blob: dc121f2287da801e4edce95a43437b18e5c29261 [
file
]
// SPDX-FileCopyrightText: The Eigen Authors
// SPDX-License-Identifier: MPL-2.0
Matrix2i
A
=
Matrix2i
::
Random
();
cout
<<
"Here are the coeffs of the 2x2 matrix A:\n"
;
for
(
auto
x
:
A
.
reshaped
())
cout
<<
x
<<
" "
;
cout
<<
"\n"
;