Files
eigen/doc/snippets/Map_outer_stride.cpp
2026-05-04 00:36:12 +00:00

7 lines
221 B
C++

// SPDX-FileCopyrightText: The Eigen Authors
// SPDX-License-Identifier: MPL-2.0
int array[12];
for (int i = 0; i < 12; ++i) array[i] = i;
cout << Map<MatrixXi, 0, OuterStride<> >(array, 3, 3, OuterStride<>(4)) << endl;