The computation of B-spline functions requires a preallocated
workspace of type
gsl_bspline_workspace. If B-spline
derivatives are also required, an additional
gsl_bspline_deriv_workspace is needed.
This function allocates a workspace for computing B-splines of order k. The number of breakpoints is given by nbreak. This leads to n = nbreak + k - 2 basis functions. Cubic B-splines are specified by k = 4. The size of the workspace is O(5k + nbreak).
This function frees the memory associated with the workspace w.
This function allocates a workspace for computing the derivatives of a B-spline basis function of order k. The size of the workspace is O(2k^2).
This function frees the memory associated with the derivative workspace w.