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: What about setting chebyshev coefficients directly


Achim Gädke writes:
 > I will have to change the allocation from malloc to calloc in 
 > gsl_cheb_alloc, in order to provide usefull initial values.

The GSL convention is to use malloc in alloc functions.  So the way to
deal with this is to have the init function take an array of the
correct size, to avoid uninitialized entries.


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