eigen/doc/snippets/Map_outer_stride.cpp
2010-02-26 22:26:21 -05:00

6 lines
167 B
C++

int array[12];
for(int i = 0; i < 12; ++i) array[i] = i;
cout << Map<MatrixXi, 0, OuterStride<Dynamic> >
(array, 3, 3, OuterStride<Dynamic>(4))
<< endl;