diff liboctave/boolNDArray.h @ 8626:1dce30ab0e72

don't convert NaN to logical in bool expressions
author John W. Eaton <jwe@octave.org>
date Thu, 29 Jan 2009 12:50:25 -0500
parents 36594d5bbe13
children d0755c9db5ed
line wrap: on
line diff
--- a/liboctave/boolNDArray.h
+++ b/liboctave/boolNDArray.h
@@ -59,6 +59,8 @@
 
   boolNDArray operator ! (void) const;
 
+  bool any_element_is_nan (void) const { return false; }
+
   // FIXME -- this is not quite the right thing.
 
   boolNDArray all (int dim = -1) const;