[Numpy-tickets] [NumPy] #641: numpy.sqrt(numpy.array([-1.0], dtype=numpy.complex256)) segfaults

NumPy numpy-tickets@scipy....
Mon Jan 7 16:09:31 CST 2008

#641: numpy.sqrt(numpy.array([-1.0], dtype=numpy.complex256)) segfaults
 Reporter:  nils        |        Owner:  somebody
     Type:  defect      |       Status:  new     
 Priority:  high        |    Milestone:  1.0.5   
Component:  numpy.core  |      Version:  devel   
 Severity:  critical    |   Resolution:          
 Keywords:              |  
Comment (by cookedm):

 I don't get the segfault (w/ OS X), but I can reproduce the non-
 reproducibility of the results (which is of course bad). I also get

 >>> numpy.sqrt(numpy.array([2.0], dtype=numpy.complex256))
 array([1.6800899e-4932+4.2271234e-4940j], dtype=complex256)

 Also problems with other functions like sin.

Ticket URL: <http://scipy.org/scipy/numpy/ticket/641#comment:1>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.

More information about the Numpy-tickets mailing list