eigen/doc/snippets/Map_simple.cpp

4 lines
93 B
C++
Raw Normal View History

2010-02-27 11:26:21 +08:00
int array[9];
for(int i = 0; i < 9; ++i) array[i] = i;
cout << Map<Matrix3i>(array) << endl;