mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-06 14:14:46 +08:00
6 lines
188 B
C++
6 lines
188 B
C++
|
int data[4] = {1,3,0,2};
|
||
|
cout << MatrixXi::map(data, 2, 2) << endl;
|
||
|
MatrixXi::map(data, 2, 2) *= 2;
|
||
|
cout << "The data is now:" << endl;
|
||
|
for(int i = 0; i < 4; i++) cout << data[i] << endl;
|