Mercurial > hg > octave-lyh
diff liboctave/dNDArray.cc @ 8743:1bd918cfb6e2
reimplement any & all using the new reduction code
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Sat, 14 Feb 2009 19:50:43 +0100 |
parents | 53b4fdeacc2e |
children | 9f7ce4bf7650 |
line wrap: on
line diff
--- a/liboctave/dNDArray.cc +++ b/liboctave/dNDArray.cc @@ -689,15 +689,13 @@ boolNDArray NDArray::all (int dim) const { - MX_ND_ANY_ALL_REDUCTION (MX_ND_ALL_EVAL (MX_ND_ALL_EXPR), true); + return do_mx_red_op<boolNDArray> (*this, dim, mx_inline_all); } boolNDArray NDArray::any (int dim) const { - MX_ND_ANY_ALL_REDUCTION - (MX_ND_ANY_EVAL (elem (iter_idx) != 0 - && ! lo_ieee_isnan (elem (iter_idx))), false); + return do_mx_red_op<boolNDArray> (*this, dim, mx_inline_any); } NDArray