ASCOT5
|
Cubic spline interpolation of a 1D data set, compact form. More...
Go to the source code of this file.
Functions | |
void | splinecomp (real *f, int n, int bc, real *c) |
Calculate compact cubic spline interpolation coefficients in 1D. | |
Cubic spline interpolation of a 1D data set, compact form.
Definition in file splinecomp.c.
Calculate compact cubic spline interpolation coefficients in 1D.
This function calculates the compact cubic interpolation coefficients for a 1D data set using one of two possible boundary conditions. Function returns a pointer to the coefficient array.
f | 1D data to be interpolated |
n | number of data points |
bc | boundary condition flag |
c | array for coefficient storage, has length 2*n |
NATURAL (Second derivative is zero at both ends)
PERIODIC (Function has same value and derivatives at both ends)
Definition at line 22 of file splinecomp.c.