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

Gradient

Calculus

Gradient function. More...

Device pointer interface: Gradient along a dimension

Parameters:
[out]d_dxOutput gradient along the X dimension
[out]d_dyOutput gradient along the Y dimension
[in]nxNumber of rows in the input
[in]nyNumber of columns in the input
[in]d_inThe input the the gradient function
[in]batchThe number of input tiles being handled

afError af_grad_B (bool *d_dx, bool *d_dy, unsigned nx, unsigned ny, const bool *d_in, unsigned batch)
 Boolean gradient function.
afError af_grad_U (unsigned *d_dx, unsigned *d_dy, unsigned nx, unsigned ny, const unsigned *d_in, unsigned batch)
 Unsigne integer gradient function.
afError af_grad_I (int *d_dx, int *d_dy, unsigned nx, unsigned ny, const int *d_in, unsigned batch)
 Integer gradient function.
afError af_grad_S (float *d_dx, float *d_dy, unsigned nx, unsigned ny, const float *d_in, unsigned batch)
 Single precision, floating point gradient funciton.
afError af_grad_D (double *d_dx, double *d_dy, unsigned nx, unsigned ny, const double *d_in, unsigned batch)
 Double precision, floating point gradient funciton.

Detailed Description

Gradient function.


Function Documentation

afError af_grad_B ( bool *  d_dx,
bool *  d_dy,
unsigned  nx,
unsigned  ny,
const bool *  d_in,
unsigned  batch 
)

Boolean gradient function.

afError af_grad_U ( unsigned *  d_dx,
unsigned *  d_dy,
unsigned  nx,
unsigned  ny,
const unsigned *  d_in,
unsigned  batch 
)

Unsigne integer gradient function.

afError af_grad_I ( int *  d_dx,
int *  d_dy,
unsigned  nx,
unsigned  ny,
const int *  d_in,
unsigned  batch 
)

Integer gradient function.

afError af_grad_S ( float *  d_dx,
float *  d_dy,
unsigned  nx,
unsigned  ny,
const float *  d_in,
unsigned  batch 
)

Single precision, floating point gradient funciton.

afError af_grad_D ( double *  d_dx,
double *  d_dy,
unsigned  nx,
unsigned  ny,
const double *  d_in,
unsigned  batch 
)

Double precision, floating point gradient funciton.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines