From a30b498ab449df1ab51fc389bc2d9f6334e31f84 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Sun, 11 Jan 2009 20:48:56 +0000 Subject: add cwise operator *= and /=. Keir says hi!! --- doc/snippets/Cwise_slash_equal.cpp | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 doc/snippets/Cwise_slash_equal.cpp (limited to 'doc/snippets/Cwise_slash_equal.cpp') diff --git a/doc/snippets/Cwise_slash_equal.cpp b/doc/snippets/Cwise_slash_equal.cpp new file mode 100644 index 000000000..10c4f4acc --- /dev/null +++ b/doc/snippets/Cwise_slash_equal.cpp @@ -0,0 +1,4 @@ +Vector3d v(3,2,4); +Vector3d w(5,4,2); +v.cwise() /= w; +cout << v << endl; -- cgit v1.2.3