From 1c78d6f2a6c7be509c1a190e1cfe42bce1916230 Mon Sep 17 00:00:00 2001 From: Deanna Hood Date: Tue, 17 Mar 2015 08:29:57 +1000 Subject: Add boolean not operator (!) array support --- doc/snippets/Cwise_boolean_not.cpp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 doc/snippets/Cwise_boolean_not.cpp (limited to 'doc/snippets') 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; -- cgit v1.2.3