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

NumPy Trac numpy-tickets@scipy....
Wed Aug 31 13:35:40 CDT 2011


#533: numpy.trace is slow for small dimensions
--------------------------+-------------------------------------------------
  Reporter:  pv           |       Owner:  pv               
      Type:  enhancement  |      Status:  closed           
  Priority:  normal       |   Milestone:  2.0.0            
 Component:  numpy.core   |     Version:  none             
Resolution:  fixed        |    Keywords:  trace performance
--------------------------+-------------------------------------------------
Changes (by mwiebe):

  * status:  needs_review => closed
  * resolution:  => fixed


Comment:

 The branch is now merged, and the following note is in the 'Changes'
 section of the release notes describing the change that speeds it up.:


 {{{
 The functions np.diag, np.diagonal, and <ndarray>.diagonal now return a
 view into the original array instead of making a copy. This makes these
 functions more consistent with NumPy's general approach of taking views
 where possible, and performs much faster as well. This has the
 potential to break code that assumes a copy is made instead of a view.
 }}}

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


More information about the NumPy-Tickets mailing list