[Numpy-tickets] [NumPy] #913: max is bogus if nan is in the array
NumPy
numpy-tickets@scipy....
Fri Sep 19 06:51:18 CDT 2008
#913: max is bogus if nan is in the array
--------------------+-------------------------------------------------------
Reporter: cdavid | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.2.1
Component: Other | Version: none
Severity: major | Keywords:
--------------------+-------------------------------------------------------
{{{
#!python
import numpy as np
np.max(np.array([-1, np.nan, -2]))
}}}
Returns -2, not -1.
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/913>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list