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

Interpolation (Matrices)

Interpolation and Rescaling

Device pointer interface: Matrix (2D) interpolation.

Parameters:
[out]d_ZIInterpolated function values
[in]mNumber of rows in inputs d_Z, d_Y, d_X
[in]nNumber of columns in inputs d_Z, d_Y, d_X
[in]d_ZFunction values
[in]batch_ZNumber of tiles of d_Z
[in]d_XX Domain values
[in]batch_XNumber of tiles of d_X
[in]d_YY Domain values
[in]batch_YNumber of tiles of d_Y
[in]miNumber of rows in d_XI, d_YI
[in]niNumber of columns in d_XI, d_YI
[in]d_XIX Grid values to interpolate on.
[in]d_XIY Grid values to interpolate on.
[in]Z0Value for interpolations off the grid (i.e. out-of-bounds)
[in]methodOnly supports 0='linear'

afError af_interp2D_S (float *d_ZI, unsigned m, unsigned n, const float *d_Z, unsigned batch_Z, unsigned mi, unsigned ni, const float *d_XI, unsigned batch_XI, const float *d_YI, unsigned batch_YI, float Z0, unsigned method)
afError af_interp2D_D (double *d_ZI, unsigned m, unsigned n, const double *d_Z, unsigned batch_Z, unsigned mi, unsigned ni, const double *d_XI, unsigned batch_XI, const double *d_YI, unsigned batch_YI, double Z0, unsigned method)
afError af_interp2D_C (cuComplex *d_ZI, unsigned m, unsigned n, const cuComplex *d_Z, unsigned batch_Z, unsigned mi, unsigned ni, const float *d_XI, unsigned batch_XI, const float *d_YI, unsigned batch_YI, float Z0, unsigned method)
afError af_interp2D_Z (cuDoubleComplex *d_ZI, unsigned m, unsigned n, const cuDoubleComplex *d_Z, unsigned batch_Z, unsigned mi, unsigned ni, const double *d_XI, unsigned batch_XI, const double *d_YI, unsigned batch_YI, double Z0, unsigned method)
#define INTERP(ty, tyi, T)
 Single precision, matrix interpolation.

Define Documentation

#define INTERP (   ty,
  tyi,
 
)
Value:
AFAPI afError af_interp2D_##T(ty *d_ZI,                        \
                                       unsigned m, unsigned n,          \
                                       const ty *d_Z, unsigned batch_Z, \
                                       unsigned mi, unsigned ni,        \
                                       const tyi *d_XI, unsigned batch_XI, \
                                       const tyi *d_YI, unsigned batch_YI, \
                                       tyi Z0, unsigned method)

Single precision, matrix interpolation.


Function Documentation

afError af_interp2D_S ( float *  d_ZI,
unsigned  m,
unsigned  n,
const float *  d_Z,
unsigned  batch_Z,
unsigned  mi,
unsigned  ni,
const float *  d_XI,
unsigned  batch_XI,
const float *  d_YI,
unsigned  batch_YI,
float  Z0,
unsigned  method 
)
afError af_interp2D_D ( double *  d_ZI,
unsigned  m,
unsigned  n,
const double *  d_Z,
unsigned  batch_Z,
unsigned  mi,
unsigned  ni,
const double *  d_XI,
unsigned  batch_XI,
const double *  d_YI,
unsigned  batch_YI,
double  Z0,
unsigned  method 
)
afError af_interp2D_C ( cuComplex *  d_ZI,
unsigned  m,
unsigned  n,
const cuComplex *  d_Z,
unsigned  batch_Z,
unsigned  mi,
unsigned  ni,
const float *  d_XI,
unsigned  batch_XI,
const float *  d_YI,
unsigned  batch_YI,
float  Z0,
unsigned  method 
)
afError af_interp2D_Z ( cuDoubleComplex *  d_ZI,
unsigned  m,
unsigned  n,
const cuDoubleComplex *  d_Z,
unsigned  batch_Z,
unsigned  mi,
unsigned  ni,
const double *  d_XI,
unsigned  batch_XI,
const double *  d_YI,
unsigned  batch_YI,
double  Z0,
unsigned  method 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines