threed-beam-fea/ext/eigen-3.2.7/doc/snippets/Cwise_plus_equal.cpp

4 lines
45 B
C++

Array3d v(1,2,3);
v += 5;
cout << v << endl;