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.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/snippets/Cwise_slash_equal.cpp b/doc/snippets/Cwise_slash_equal.cpp
index 10c4f4acc..2efd32d84 100644
--- a/doc/snippets/Cwise_slash_equal.cpp
+++ b/doc/snippets/Cwise_slash_equal.cpp
@@ -1,4 +1,3 @@
-Vector3d v(3,2,4);
-Vector3d w(5,4,2);
-v.cwise() /= w;
+Array3d v(3,2,4), w(5,4,2);
+v /= w;
cout << v << endl;