[NumPy-Tickets] [NumPy] #1878: numpy.argmin() fails to find the minimum for the most negative integer

NumPy Trac numpy-tickets@scipy....
Fri Jul 22 10:31:49 CDT 2011


#1878: numpy.argmin() fails to find the minimum for the most negative integer
----------------------+-----------------------------------------------------
 Reporter:  tlatorre  |       Owner:  somebody    
     Type:  defect    |      Status:  needs_review
 Priority:  normal    |   Milestone:  Unscheduled 
Component:  Other     |     Version:  1.3.0       
 Keywords:            |  
----------------------+-----------------------------------------------------
Changes (by alfonsonp):

  * status:  new => needs_review


Comment:

 I have just sent a fix for this issue (patch 0001-ABA-Test-and-fix-for-
 argmin-in-integers.patch). The fix consist of adding one to array if array
 is integer. I have also included test cases.

 Besides, in argmin function, I changed error message, because I think that
 error message should be that argmin is not supported, not argmax (although
 argmax was the real function).

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1878#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list