diff options
Diffstat (limited to 'eigen/doc/snippets/Cwise_isNaN.cpp')
-rw-r--r-- | eigen/doc/snippets/Cwise_isNaN.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/eigen/doc/snippets/Cwise_isNaN.cpp b/eigen/doc/snippets/Cwise_isNaN.cpp new file mode 100644 index 0000000..7b2a930 --- /dev/null +++ b/eigen/doc/snippets/Cwise_isNaN.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 << isnan(v) << endl; |