On Sat, Jun 25, 2011 at 1:18 PM, Alan G Isaac <alan.is...@gmail.com> wrote:
> On 6/25/2011 2:06 PM, Benjamin Root wrote: > > Note that "np.sum([])" also returns 0.0. I think the > > reason why it has been returning zero instead of NaN was > > because there wasn't a NaN-equivalent for integers. > > > http://en.wikipedia.org/wiki/Empty_sum > > Ah, thanks. This then does raise the question of what masked arrays should do in the case of a completely masked out record (or field, or whatever). Ben Root
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion