Sign in
eigen
/
mirror
/
90dfbc054ed49f7999e506ccd0d8436a61261395
/
.
/
doc
/
snippets
/
Tutorial_range_for_loop_1d.cpp
blob: 447d6494782e0c809e0ee7d3442b70449d1b1f47 [
file
]
// SPDX-FileCopyrightText: The Eigen Authors
// SPDX-License-Identifier: MPL-2.0
VectorXi
v
=
VectorXi
::
Random
(
4
);
cout
<<
"Here is the vector v:\n"
;
for
(
auto
x
:
v
)
cout
<<
x
<<
" "
;
cout
<<
"\n"
;