Mercurial > hg > octave-lyh
changeset 7457:aab45fbcd71f
fix any(int) bug
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 07 Feb 2008 15:58:37 -0500 |
parents | fee437704c67 |
children | 1032e24f199f |
files | liboctave/ChangeLog liboctave/intNDArray.cc |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,7 @@ +2008-02-07 John W. Eaton <jwe@octave.org> + + * intNDArray.cc (intNDArray<T>::any (int)): Use != for comparison. + 2008-02-06 John W. Eaton <jwe@octave.org> * Makefile.in ($(OPTS_INC)): Use mv instead of move-if-change.
--- 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>