eigen/doc/snippets/Cwise_slash_equal.cpp

5 lines
73 B
C++
Raw Normal View History

Vector3d v(3,2,4);
Vector3d w(5,4,2);
v.cwise() /= w;
cout << v << endl;