Hello Boxem,

Look at section 18.3 in gsl-ref, the function gsl_rng_free is there.
And you may use it to clean the memory allocated by gsl_rng_alloc.

Best regards
-- 
Haroldo Valentin Ribeiro
Departamento de Física
Universidade Estadual de Maringá
Avenida Colombo, 5790
87020-900 Maringá, Paraná, Brazil
Fax:        +55 44 3263 4623
Phone:    +55 44 3041 5937
Skype:     haroldov
E-mail:     [email protected],
        [email protected]

2010/8/18 Ruben Van Boxem <[email protected]>

> hi,
>
> When and how should I free the gsl_rng_type pointer I use to create my rng?
> Can I free it right after the call to
>
> > r = gsl_rng_alloc (T);
> >
>
> The example in the
> documentation<
> http://www.gnu.org/software/gsl/manual/html_node/Random-Number-Generator-Examples.html
> >does
> not, so I wonder if gsl_rng_free doesn't do this.
>
> Thanks!
> _______________________________________________
> Help-gsl mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/help-gsl
>
_______________________________________________
Help-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to