diff liboctave/intNDArray.cc @ 11773:cfe88845aa1e release-3-0-x

fix any(int) bug
author John W. Eaton <jwe@octave.org>
date Thu, 07 Feb 2008 15:58:37 -0500
parents 72830070a17b
children
line wrap: on
line diff
--- a/liboctave/intNDArray.cc	Tue May 06 13:15:43 2008 -0400
+++ b/liboctave/intNDArray.cc	Thu Feb 07 15:58:37 2008 -0500
@@ -135,7 +135,7 @@
 boolNDArray
 intNDArray<T>::any (int dim) const
 {
-  MX_ND_ANY_ALL_REDUCTION (MX_ND_ALL_EVAL (this->elem (iter_idx) == T (0)), false);
+  MX_ND_ANY_ALL_REDUCTION (MX_ND_ANY_EVAL (this->elem (iter_idx) != T (0)), false);
 }
 
 template <class T>