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

Rescaling

Interpolation and Rescaling

Scaling the input by a factor. More...

Device pointer interface: Rescale a matrix.

d_ZI = scale(d_Z, factor, method)
Parameters:
[out]d_ZIRescaled matrix
[in]mdInput rows (first dimension)
[in]ndInput columns (second dimension)
[in]d_ZOriginal matrix.
[in]factorInteger scaling factor
[in]methodInterpolaiton method. Currently should be 'linear' only

afError af_scale2D_S (float *d_ZI, unsigned md, unsigned nd, const float *d_Z, int factor, unsigned method)
 Single-precision rescale.
afError af_scale2D_D (double *d_ZI, unsigned md, unsigned nd, const double *d_Z, int factor, unsigned method)
afError af_scale2D_C (cuComplex *d_ZI, unsigned md, unsigned nd, const cuComplex *d_Z, int factor, unsigned method)
afError af_scale2D_Z (cuDoubleComplex *d_ZI, unsigned md, unsigned nd, const cuDoubleComplex *d_Z, int factor, unsigned method)
afError af_scale2D_c (char *d_ZI, unsigned md, unsigned nd, const char *d_Z, int factor, unsigned method)
 Character (8-bit) rescale.

Detailed Description

Scaling the input by a factor.


Function Documentation

afError af_scale2D_S ( float *  d_ZI,
unsigned  md,
unsigned  nd,
const float *  d_Z,
int  factor,
unsigned  method 
)

Single-precision rescale.

afError af_scale2D_D ( double *  d_ZI,
unsigned  md,
unsigned  nd,
const double *  d_Z,
int  factor,
unsigned  method 
)
afError af_scale2D_C ( cuComplex *  d_ZI,
unsigned  md,
unsigned  nd,
const cuComplex *  d_Z,
int  factor,
unsigned  method 
)
afError af_scale2D_Z ( cuDoubleComplex *  d_ZI,
unsigned  md,
unsigned  nd,
const cuDoubleComplex *  d_Z,
int  factor,
unsigned  method 
)
afError af_scale2D_c ( char *  d_ZI,
unsigned  md,
unsigned  nd,
const char *  d_Z,
int  factor,
unsigned  method 
)

Character (8-bit) rescale.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines