mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
add cwise operator *= and /=.
Keir says hi!!
This commit is contained in:
4
doc/snippets/Cwise_slash_equal.cpp
Normal file
4
doc/snippets/Cwise_slash_equal.cpp
Normal file
@@ -0,0 +1,4 @@
|
||||
Vector3d v(3,2,4);
|
||||
Vector3d w(5,4,2);
|
||||
v.cwise() /= w;
|
||||
cout << v << endl;
|
||||
4
doc/snippets/Cwise_times_equal.cpp
Normal file
4
doc/snippets/Cwise_times_equal.cpp
Normal file
@@ -0,0 +1,4 @@
|
||||
Vector3d v(1,2,3);
|
||||
Vector3d w(2,3,0);
|
||||
v.cwise() *= w;
|
||||
cout << v << endl;
|
||||
Reference in New Issue
Block a user