aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/Cwise_boolean_not.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-06-10 15:52:05 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-06-10 15:52:05 +0200
commit25a98be948095c1487936c45aec0b7717509dac5 (patch)
tree2d195462c9c55803c1a6b99dec884545e90577b1 /doc/snippets/Cwise_boolean_not.cpp
parent192bce2795bbfaa0d4e6fdcd270a95d59da82f66 (diff)
parente5048b5501a4c2cd86fa3f92ad214938eb3f9b3f (diff)
bug #80: merge with d_hood branch on adding more coefficient-wise unary array functors
Diffstat (limited to 'doc/snippets/Cwise_boolean_not.cpp')
-rw-r--r--doc/snippets/Cwise_boolean_not.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/snippets/Cwise_boolean_not.cpp b/doc/snippets/Cwise_boolean_not.cpp
new file mode 100644
index 000000000..8b8e6fc95
--- /dev/null
+++ b/doc/snippets/Cwise_boolean_not.cpp
@@ -0,0 +1,5 @@
+Array3d v(1,2,3);
+v(1) *= 0.0/0.0;
+v(2) /= 0.0;
+cout << v << endl << endl;
+cout << !isFinite(v) << endl;