Do more. Code less. Free software for GPU computing.
<scroll to top>

Interpolation (Vectors)

Interpolation and Rescaling

Device pointer interface: Vector (1D) interpolation.

Parameters:
[out]d_YIInterpolated function values
[in]nNumber of elements in inputs d_Y, d_X
[in]d_YFunction values
[in]batch_YNumber of tiles of d_Y
[in]d_XDomain values (currently needs to be NULL)
[in]batch_XNumber of tiles of d_X
[in]niNumber of elements in d_XI
[in]d_XIGrid values to interpolate on.
[in]Y0Value for interpolations off the grid (i.e. out-of-bounds)
[in]methodOnly supports 0='linear'

afError af_interp1D_S (float *d_YI, unsigned n, const float *d_Y, unsigned batch_Y, const float *d_X, unsigned batch_X, unsigned ni, const float *d_XI, float Y0, unsigned method)
 Single precision, vector interpolation.
afError af_interp1D_C (cuComplex *d_YI, unsigned n, const cuComplex *d_Y, unsigned batch_Y, const float *d_X, unsigned batch_X, unsigned ni, const float *d_XI, float Y0, unsigned method)
 Complex, Single precision, vector interpolation.
afError af_interp1D_D (double *d_YI, unsigned n, const double *d_Y, unsigned batch_Y, const double *d_X, unsigned batch_X, unsigned ni, const double *XI, double Y0, unsigned method)
 Double precision, vector interpolation.
afError af_interp1D_Z (cuDoubleComplex *d_YI, unsigned n, const cuDoubleComplex *d_Y, unsigned batch_Y, const double *d_X, unsigned batch_X, unsigned ni, const double *d_XI, double Y0, unsigned method)
 Complex, Double precision, vector interpolation.

Function Documentation

afError af_interp1D_S ( float *  d_YI,
unsigned  n,
const float *  d_Y,
unsigned  batch_Y,
const float *  d_X,
unsigned  batch_X,
unsigned  ni,
const float *  d_XI,
float  Y0,
unsigned  method 
)

Single precision, vector interpolation.

afError af_interp1D_C ( cuComplex *  d_YI,
unsigned  n,
const cuComplex *  d_Y,
unsigned  batch_Y,
const float *  d_X,
unsigned  batch_X,
unsigned  ni,
const float *  d_XI,
float  Y0,
unsigned  method 
)

Complex, Single precision, vector interpolation.

afError af_interp1D_D ( double *  d_YI,
unsigned  n,
const double *  d_Y,
unsigned  batch_Y,
const double *  d_X,
unsigned  batch_X,
unsigned  ni,
const double *  XI,
double  Y0,
unsigned  method 
)

Double precision, vector interpolation.

afError af_interp1D_Z ( cuDoubleComplex *  d_YI,
unsigned  n,
const cuDoubleComplex *  d_Y,
unsigned  batch_Y,
const double *  d_X,
unsigned  batch_X,
unsigned  ni,
const double *  d_XI,
double  Y0,
unsigned  method 
)

Complex, Double precision, vector interpolation.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines