[Numpy-discussion] OS X PPC problem with Numpy 1.3.0b1

Bruce Southey bsouthey at gmail.com
Mon Mar 23 17:32:47 EDT 2009


Pauli Virtanen wrote:
> Mon, 23 Mar 2009 15:03:09 -0500, Bruce Southey wrote:
> [clip]
>   
>> I do not know if this is related, but I got similar error with David's
>> windows 64 bits installer on my 64 bit Vista system.
>> http://mail.scipy.org/pipermail/numpy-discussion/2009-March/041282.html
>>
>> In particular this code crashes:
>>     
>>>>> import numpy as np
>>>>> info = np.finfo(np.longcomplex)
>>>>>           
>
> Could you narrow that down a bit: do
>
> import numpy as np
> z = np.longcomplex(complex(1.,1.))
> z + z
> z - z
> z * z
> z / z
> z + 2
> z - 2
> z * 2
> z / 2
> z**0
> z**1
> z**2
> z**3
> z**4
> z**4.5
> z**(-1)
> z**(-2)
> z**101
>
> Do you get a crash at some point?
>
>   
No.

I get a problem with using longdouble as that is the dtype that causes 
the  TestPower.test_large_types to crash.
Also, np.finfo(np.float128) crashes. I can assign and multiple 
longdoubles and take the square root but not use the power '**'.
 >>> y=np.longdouble(2)
 >>> y
2.0
 >>> y**1
2.0
 >>> y**2
crash


Bruce



More information about the NumPy-Discussion mailing list