[NumPy-Tickets] [NumPy] #2218: numpy.any ignores imaginary part of arrays

NumPy Trac numpy-tickets@scipy....
Tue Sep 25 11:19:13 CDT 2012


#2218: numpy.any ignores imaginary part of arrays
-------------------------+--------------------------------------------------
 Reporter:  mike.wimmer  |       Owner:  somebody
     Type:  defect       |      Status:  new     
 Priority:  highest      |   Milestone:  1.7.0   
Component:  numpy.core   |     Version:  1.6.1   
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by charris):

 Looks to be a problem in the ufunc reduce method for complex:


 {{{

 In [15]: a = ones(5)*1j

 In [16]: logical_or(a,a)
 Out[16]: array([ True,  True,  True,  True,  True], dtype=bool)

 In [17]: logical_or.reduce(a)
 Out[17]: False
 }}}

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


More information about the NumPy-Tickets mailing list