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

4 lines
93 B
C++

int array[9];
for(int i = 0; i < 9; ++i) array[i] = i;
cout << Map<Matrix3i>(array) << endl;