COSC-4P80-Assignment-2/lib/eigen-3.4.0/doc/snippets/Map_outer_stride.cpp

4 lines
138 B
C++
Raw Normal View History

2024-10-21 16:42:03 -04:00
int array[12];
for(int i = 0; i < 12; ++i) array[i] = i;
cout << Map<MatrixXi, 0, OuterStride<> >(array, 3, 3, OuterStride<>(4)) << endl;