[NumPy-Tickets] [NumPy] #2106: einsum crashes with repeated zero dimension arrays

NumPy Trac numpy-tickets@scipy....
Mon Apr 16 03:51:19 CDT 2012


#2106: einsum crashes with repeated zero dimension arrays
--------------------+-------------------------------------------------------
 Reporter:  rcl33   |       Owner:  somebody   
     Type:  defect  |      Status:  new        
 Priority:  normal  |   Milestone:  Unscheduled
Component:  Other   |     Version:  1.6.1      
 Keywords:          |  
--------------------+-------------------------------------------------------
 einsum crashes when summing over the same array more than once, when the
 array has zero dimension:

 {{{
 a = zeros((3,3,0,0))
 b = zeros((0,))
 einsum('ijpr,p,r', a, b, b) # hangs then Python crashes
 }}}

 On the other hand these both work:
 {{{
 einsum('ijpr,p', a, b)
 }}}

 {{{
 c = zeros((3,3,1,1))
 d = zeros((1,))
 einsum('ijpr,p,r', c, d, d)
 }}}

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/2106>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list