#include "cstd.h"
Go to the source code of this file.
Functions | |
int | cubic_getworksize (int nt) |
Returns necessary workspace for interpolation. | |
int | cubic_ (float const *oin, float const *din, float const *vin, int const *nin, float const *oout, float const *dout, float *vout, int const *nout, int const *iend, float *work, int const *wl) |
Cubic spline interpolation. | |
int | cubicadj_getworksize (int nout, int nin) |
Returns workspace size for adjoint interpolation. | |
int | cubicadj_ (float const *oin, float const *din, float const *vin, int const *nin, float const *oout, float const *dout, float *vout, int const *nout, int const *iend, float *work, int const *wl) |
Cubic spline adjoint interpoation. |
int cubic_getworksize | ( | int | nt | ) |
Returns necessary workspace for interpolation.
int cubic_ | ( | float const * | oin, | |
float const * | din, | |||
float const * | vin, | |||
int const * | nin, | |||
float const * | oout, | |||
float const * | dout, | |||
float * | vout, | |||
int const * | nout, | |||
int const * | iend, | |||
float * | work, | |||
int const * | wl | |||
) |
Cubic spline interpolation.
[in] | nin | (int) number of input gridpoints; |
[in] | din | (float) step for input grid; |
[in] | oin | (float) coordinate of first input sample; |
[in] | vin | (float *) input data array; |
[in] | nout | (int) number of output gridpoints; |
[in] | dout | (float) step for output grid; |
[in] | oout | (float) coordinate of first output sample; |
[out] | vout | (float *) output data array; |
[in] | iend | (int) endpoint code:
|
[in] | work | (float *) workspace (memory managed externally); |
[in] | wl | (int) size of workspace. |
The helper function cubic_getworksize returns the necessary workspace length.
0 | normal return | |
11 | incorrect end condition given (must lie between 1 and 3) | |
12 | not enough input data points, must be > 3 | |
10 | not enough workspace, needs 4*ni-3 words |
int cubicadj_getworksize | ( | int | nout, | |
int | nin | |||
) |
Returns workspace size for adjoint interpolation.
int cubicadj_ | ( | float const * | oin, | |
float const * | din, | |||
float const * | vin, | |||
int const * | nin, | |||
float const * | oout, | |||
float const * | dout, | |||
float * | vout, | |||
int const * | nout, | |||
int const * | iend, | |||
float * | work, | |||
int const * | wl | |||
) |
Cubic spline adjoint interpoation.
[in] | nin | (int) number of input gridpoints; |
[in] | din | (float) step for input grid; |
[in] | oin | (float) coordinate of first input sample; |
[in] | vin | (float *) input data array; |
[in] | nout | (int) number of output gridpoints; |
[in] | dout | (float) step for output grid; |
[in] | oout | (float) coordinate of first output sample; |
[out] | vout | (float *) output data array; |
[in] | iend | (int) endpoint code:
|
[in] | work | (float *) workspace (memory managed externally); |
[in] | wl | (int) size of workspace. |
The helper function cubicadg_getworksize returns the necessary workspace length.
0 | normal return | |
11 | incorrect end condition given (must lie between 1 and 3) | |
12 | not enough input data points, must be > 3 | |
10 | not enough workspace, needs nin+7*nout-8 words. |