[NumPy-Tickets] [NumPy] #919: Incorrect printing some complex complex arrays containing nans.

NumPy Trac numpy-tickets@scipy....
Tue Mar 29 17:27:12 CDT 2011


#919: Incorrect printing some complex complex arrays containing nans.
---------------------+------------------------------------------------------
 Reporter:  charris  |       Owner:  cdavid     
     Type:  defect   |      Status:  accepted   
 Priority:  high     |   Milestone:  Unscheduled
Component:  Other    |     Version:  devel      
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by rgommers):

 Tested on win32, works for non 0-D arrays, not for scalars and scalar
 arrays:
 {{{
 >>> np.array(np.nan + np.nan * 1.j)  # bad
 array((nan+nan*j))
 >>> np.array([np.nan + np.nan * 1.j])  # good
 array([ nan+nanj])
 >>> c = np.complex_(np.nan + np.nan * 1.j)
 >>> c  # bad
 (nan+nan*j)
 >>> np.array([c, c])  # good
 array([ nan+nanj,  nan+nanj])
 }}}

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


More information about the NumPy-Tickets mailing list