[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gsl] Re: infinite loop in gsl_eigen_symm
From: |
Patrick Alken |
Subject: |
Re: [Bug-gsl] Re: infinite loop in gsl_eigen_symm |
Date: |
Mon, 27 Aug 2007 16:42:04 -0600 |
User-agent: |
Mutt/1.4.2.2i |
> Well, I'm wondering if testing a float on an exact zero is in
> principle the right thing to do. It seems as all sort of rounding
> errors are invited in that are very hard to track down.
>
> Wouldn't it be better to have something like GSL_IEEE_TEST_ZERO( x ) with
> #define GSL_IEEE_TEST_ZERO(x) ( (x < GSL_MIN_IEEE) && ( x> -GSL_MIN_IEEE) )
The test for exactly zero is correct - the function chop_small_elements
has the job of determining if the number is "really" zero, and if it
is it sets it to 0.0 so that test of == 0.0 will succeed. The problem
seems to be that the test in chop_small_elements is not finding the
zero element properly.
Re: [Bug-gsl] Re: infinite loop in gsl_eigen_symm, Brian Gough, 2007/08/29