[Matrix-SIG] Floating point exception when sort is given zero length list

Travis Oliphant Oliphant.Travis@mayo.edu
Tue, 15 Dec 1998 15:58:26 -0600 (CST)


I received some good feedback on my post of the floating-point exception
in NumPy.  To clarify my purposes in posting, I did not find this error
as part of some bug search but while programming.  I find the NumPy
distribution to be normally quite robust and so was surprised by the
error. 

I was using Oliver Andrich's rpm which I discovered is based on
LLNLPython4.  I upgraded to LLNLPython6 which is the lastest distribution  
I could find and still found the same behavior.

The fix suggested by Charles Waldman was most helpful.  I applied the
simple patch and now no longer get the exception, instead sort([]) 
returns a respectable empty array.  Thank you very much.

Thanks to all who responded.

Travis O.


On Tue, 15 Dec 1998, Paul F. Dubois wrote:

> I believe this is fixed. Please run the most recent NumPy.
>