rng question

Jari Häkkinen jari@chiralcomp.com
Sat Dec 17 23:58:00 GMT 2005


Thank you, I tested the latest CVS and GSL now behaves as expected.


Jari


Brian Gough wrote:
> Jari Häkkinen writes:
>  > No, the attached program does not return from the call to 
>  > gsl_rng_uniform_int.
>  > 
>  > The problem shows up on my powermac running MacOSX 10.4.3 with gcc 
>  > version powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 20041026 (Apple 
>  > Computer, Inc. build 4061).
>  > I compile GSL from CVS (20051208 = today) with with flags -NDEBUG -O2. 
>  > The test program is compiled with a plain 'gcc -o rnd_test rnd_test.c 
>  > -lgsl'.
>  > 
>  > Now, I also run the test program on a SuSE based machine, and the call 
>  > fails with an floating point exception as expected.
> 
> Thanks. I've added a test to catch the case n=0 and return an error, and
> added some notes in the documentation to explain how the function works.
> 



More information about the Gsl-discuss mailing list