This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Borland C++ gsl_rng


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     /
  \--------------------------------------------------------------------/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]