[SciPy-dev] Infinite loop in machar.py

Travis Oliphant oliphant at ee.byu.edu
Tue Nov 8 13:17:04 CST 2005


Ed Schofield wrote:

>  
>
>>Hi Pearu,
>>
>>I'm getting an infinite loop in machar.py when running newcore's long
>>double unit test:
>>
>>check_singleton (scipy.base.getlimits.test_getlimits.test_longdouble)
>>
>>on a G4 PPC.
>>    
>>
>
>
>Here's a little more detective work:
>
>  
>
>>>>a = scipy.ones(3, 'g')
>>>>a
>>>>        
>>>>
>array([ 0.,  0.,  0.], dtype=float128)
>  
>
>>>>b = a*10
>>>>b
>>>>        
>>>>
>array([ 0.,  0.,  0.], dtype=float128)
>  
>

I had to write special printing code for long doubles.  I noticed that 
this did not seem to work on the MAC.   I think the printf is broken for 
long doubles with gcc 4.0.

It would be possible to fix the printing code separately, if math is working

-Travis





More information about the Scipy-dev mailing list