Files
eigen/doc/snippets/Tutorial_range_for_loop_1d.cpp
T

8 lines
200 B
C++

// 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";