Mercurial > hg > octave-nkf
diff liboctave/intNDArray.cc @ 7457:aab45fbcd71f
fix any(int) bug
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 07 Feb 2008 15:58:37 -0500 |
parents | e8d953d03f6a |
children | 8c32f95c2639 |
line wrap: on
line diff
--- a/liboctave/intNDArray.cc +++ b/liboctave/intNDArray.cc @@ -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>