mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
6 lines
182 B
C++
6 lines
182 B
C++
int data[4] = {1,3,0,2};
|
|
cout << VectorXi::map(data, 4) << endl;
|
|
VectorXi::map(data, 4) *= 2;
|
|
cout << "The data is now:" << endl;
|
|
for(int i = 0; i < 4; i++) cout << data[i] << endl;
|