add cwise operator *= and /=.

Keir says hi!!
This commit is contained in:
Benoit Jacob
2009-01-11 20:48:56 +00:00
parent 28e15574df
commit a30b498ab4
4 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
Vector3d v(3,2,4);
Vector3d w(5,4,2);
v.cwise() /= w;
cout << v << endl;

View File

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