eigen/doc/snippets/Cwise_times_equal.cpp
Benoit Jacob a30b498ab4 add cwise operator *= and /=.
Keir says hi!!
2009-01-11 20:48:56 +00:00

5 lines
73 B
C++

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