mesytec-mnode/external/taskflow-3.8.0/3rd-party/eigen-3.3.7/doc/snippets/MatrixBase_array.cpp

5 lines
70 B
C++
Raw Permalink Normal View History

2025-01-04 01:25:05 +01:00
Vector3d v(1,2,3);
v.array() += 3;
v.array() -= 2;
cout << v << endl;