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

NumPy Trac numpy-tickets@scipy....
Sat May 26 07:33:17 CDT 2012


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

  * status:  new => needs_review


Comment:

 This seems to have fixed it.  I don't know if this is the best approach,
 or if it would be better to set a flag somewhere that indicates that data
 needs copying.  This would seem safer than pointer math, but I'm not
 familiar enough with the npyiter code to know if that's a possible
 solution.

 If someone could review this, I can submit a PR.
 https://github.com/thouis/numpy/commit/a86a828e8f7e63cda926be031cbfc35d49ee820e

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


More information about the NumPy-Tickets mailing list