[Numpy-discussion] NaN, min, and max

Christian ckkart at hoc.net
Thu Feb 8 00:21:08 EST 2007


Keith Goodman <kwgoodman <at> gmail.com> writes:

> matrix([[ 0.94425407,  0.02216611,  0.999475  ],
>         [ 0.40444129,         nan,  0.23264341],
>         [ 0.24202372,  0.05344269,  0.37967564]])
> >> x.max()
> 0.379675636032   <---- Wrong (for me)
> >> x[1,1] = 0
> >> x.max()
> 0.999474999444  <----- Beautiful! Look at all the tripple digits!

Works as expected with python2.4/numpy1.0

Christian






More information about the NumPy-Discussion mailing list