eigen/doc/snippets/MatrixBase_map.cpp
2008-01-03 19:36:32 +00:00

5 lines
175 B
C++

int data[4] = {1,3,0,2};
cout << Matrix2i::map(data) << endl;
Matrix2i::map(data) *= 2;
cout << "The data is now:" << endl;
for(int i = 0; i < 4; i++) cout << data[i] << endl;