1
0
mirror of https://gitlab.com/libeigen/eigen.git synced 2025-08-12 03:39:01 +08:00
eigen/doc/snippets/MatrixBase_array.cpp

5 lines
72 B
C++

Vector3d v(1, 2, 3);
v.array() += 3;
v.array() -= 2;
cout << v << endl;