aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/Cwise_slash_equal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/snippets/Cwise_slash_equal.cpp')
-rw-r--r--doc/snippets/Cwise_slash_equal.cpp4
1 files changed, 4 insertions, 0 deletions
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;