kml_v_?_interp2d_eval_deriv_x_e
Return the partial derivative
of the interpolation function at a given point (x, y). The interpolation object interp and data arrays xarr, yarr, and zarr are used in the calculation. Ensure that the x array is within the range of xarr or the y array is within the range of yarr.
Interface Definition
C interface:
int kml_v_float_interp2d_eval_deriv_x_e(const kml_float_interp2d *interp, const float xarr[], const float yarr[], const float zarr[], const float x[], const float y[], size_t xin_size, size_t yin_size, float *z, size_t zin_size);
int kml_v_double_interp2d_eval_deriv_x_e(const kml_double_interp2d *interp, const double xarr[], const double yarr[], const double zarr[], const double x[], const double y[], size_t xinSize, size_t yinSize, double *z, size_t zinSize);
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
interp |
kml_float_interp2d*, kml_double_interp2d* |
Pointer to an interpolation object. |
Input |
xarr |
float, double |
Array that stores the value of x. |
Input |
yarr |
float, double |
Array that stores the value of y. |
Input |
zarr |
float, double |
Array that stores the value of z. |
Input |
x |
float, double |
Array that stores the value of the solution point x. |
Input |
y |
float, double |
Array that stores the value of the solution point y. |
Input |
xinSize |
size_t |
Length of the x array. |
Input |
yinSize |
size_t |
Length of the y array. |
Input |
z |
float *, double * |
Pointer to the calculation result array of ∂z/∂x at the interpolation point. |
Output |
zinSize |
size_t |
Length of the calculation result array. |
Input |