[NumPy-Tickets] [NumPy] #533: numpy.trace is slow for small dimensions

NumPy Trac numpy-tickets@scipy....
Thu Jul 14 15:47:17 CDT 2011


#533: numpy.trace is slow for small dimensions
-------------------------------+--------------------------------------------
 Reporter:  pv                 |       Owner:  pv   
     Type:  enhancement        |      Status:  new  
 Priority:  normal             |   Milestone:  2.0.0
Component:  numpy.core         |     Version:  none 
 Keywords:  trace performance  |  
-------------------------------+--------------------------------------------

Comment(by jpeel):

 Attached a test showing that the real problem is with diagonal. trace
 currently calls diagonal and then sums on the last set of axes. Diagonal
 is fast when called on 2D arrays, but slow over arrays that have more than
 2 dimensions.

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


More information about the NumPy-Tickets mailing list