help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] Random Number Generator


From: Jerome BENOIT
Subject: Re: [Help-gsl] Random Number Generator
Date: Wed, 18 Aug 2010 18:45:19 +0800
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100805 Icedove/3.0.6

Hello List,

the gsl_rng_type pointer T is not meant to be freed.

Running the below code with valgrind shows that all blocks are freed.

hth,
Jerome

On 18/08/10 17:11, Ruben Van Boxem wrote:
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
address@hidden
http://lists.gnu.org/mailman/listinfo/help-gsl



reply via email to

[Prev in Thread] Current Thread [Next in Thread]