You can allocate the 'spline' object once and pass it to the function,
as long as your BIN parameter stays the same for each function call.
On 10/14/2013 03:52 AM, Ruben Farinelli wrote:
> Dear GSL,
> I have the following question.
>
> I need to pass thousands of times two arrays to a custom func
On 14 October 2013 10:52, Ruben Farinelli wrote:
> However allocating at each call in the function the dimension of the object
> and then freeing it via the commands
>
> spline=gsl_spline_alloc(gsl_interp_cspline, BIN);
> gsl_spline_init(spline, array_x, array_y, BIN);
>
> /* commands */
>
> gsl_s
Dear GSL,
I have the following question.
I need to pass thousands of times two arrays to a custom function in order to
perform a spline interpolation.
However allocating at each call in the function the dimension of the object
and then freeing it via the commands
spline=gsl_spline_alloc(gsl_int