[NumPy-Tickets] [NumPy] #2144: .max(0) on reshaped array returns inconsistent results.

NumPy Trac numpy-tickets@scipy....
Fri May 25 11:17:36 CDT 2012

#2144: .max(0) on reshaped array returns inconsistent results.
 Reporter:  thouis  |       Owner:  somebody   
     Type:  defect  |      Status:  new        
 Priority:  normal  |   Milestone:  Unscheduled
Component:  Other   |     Version:  devel      
 Keywords:          |  

Comment(by mwiebe):

 The function which should be doing the initialization which seems to be
 failing is here in the "else" case:


 I've tried it on a Mac with 64-bit Python 2.7.1, built with llvm-gcc
 4.2.1, but it didn't reproduce there either.

 Can you try a few other reductions that trigger the same code-path?
 Instead of "a.max(0)", try "np.maximum.reduce(a, axis=0)"? The functions
 np.minimum.reduce, np.fmin.reduce, np.fmax.reduce should trigger it too.

Ticket URL: <http://projects.scipy.org/numpy/ticket/2144#comment:4>
NumPy <http://projects.scipy.org/numpy>
My example project

More information about the NumPy-Tickets mailing list