Borland C++ gsl_rng

Joakim Hove hove@bccs.no
Tue May 18 08:29:00 GMT 2004


Michał Strug <mbr4@o2.pl> writes:




>   const gsl_rng_type * T;
>   gsl_rng * r;
>   gsl_rng_env_setup();
>   T = gsl_rng_default;
>   r = gsl_rng_alloc (T);


Replace with (for instance):

    gsl_rng * r = gsl_rng_alloc (gsl_rng_taus);

I would try allocating one of the rng_types explicitly, like the
gsl_rng_taus generator above. The default method is based on
environment variables - I have no idea how that works from Windows.


HTH - Joakim


-- 
  /--------------------------------------------------------------------\
 / Joakim Hove  / hove@bccs.no  /  (55 5) 84076       |                 \
 | Unifob AS, Avdeling for Beregningsvitenskap (BCCS) | Stabburveien 18 |
 | CMU                                                | 5231 Paradis    |
 \ Thormøhlensgt.55, 5020 Bergen.                     | 55 91 28 18     /
  \--------------------------------------------------------------------/



More information about the Gsl-discuss mailing list