summaryrefslogtreecommitdiffhomepage
path: root/eigen/doc/snippets/Cwise_cube.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'eigen/doc/snippets/Cwise_cube.cpp')
-rw-r--r--eigen/doc/snippets/Cwise_cube.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/eigen/doc/snippets/Cwise_cube.cpp b/eigen/doc/snippets/Cwise_cube.cpp
new file mode 100644
index 0000000..85e41dc
--- /dev/null
+++ b/eigen/doc/snippets/Cwise_cube.cpp
@@ -0,0 +1,2 @@
+Array3d v(2,3,4);
+cout << v.cube() << endl;