aboutsummaryrefslogtreecommitdiff
path: root/doc/snippets/Cwise_round.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/snippets/Cwise_round.cpp')
-rw-r--r--doc/snippets/Cwise_round.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/snippets/Cwise_round.cpp b/doc/snippets/Cwise_round.cpp
new file mode 100644
index 000000000..e5c88230b
--- /dev/null
+++ b/doc/snippets/Cwise_round.cpp
@@ -0,0 +1,3 @@
+ArrayXd v = ArrayXd::LinSpaced(7,-2,2);
+cout << v << endl << endl;
+cout << round(v) << endl;