[Numpy-tickets] [NumPy] #590: arr.max() does not always return maximum

NumPy numpy-tickets@scipy....
Tue Oct 9 20:29:15 CDT 2007


#590: arr.max() does not always return maximum
------------------------+---------------------------------------------------
 Reporter:  stefan      |        Owner:  somebody     
     Type:  defect      |       Status:  closed       
 Priority:  high        |    Milestone:  1.0.4 Release
Component:  numpy.core  |      Version:  devel        
 Severity:  major       |   Resolution:  wontfix      
 Keywords:  maximum     |  
------------------------+---------------------------------------------------
Changes (by oliphant):

  * status:  new => closed
  * resolution:  => wontfix

Comment:

 The problem is your data has nan's in it.  This is a known issue.
 Comparision with nans don't work as you would think and are a problem for
 any kind of sorting algorithm that does not special-case for them (which
 NumPy does not do).

 Whether or not NumPy should special-case for NaN's is an open question
 that has so far been resolved in the negative.

 Use nanmax and nanmin instead...

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/590#comment:2>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list