eigen/doc/snippets/Cwise_times_equal.cpp

5 lines
73 B
C++
Raw Normal View History

Vector3d v(1,2,3);
Vector3d w(2,3,0);
v.cwise() *= w;
cout << v << endl;