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

Difference

Calculus

Difference function, can be approximated to a derivative. More...

Device pointer interface: Difference along a dimension

Parameters:
[in]ndims_outnumber of output dimensions
[in]dims_outoutput dimensions
[out]d_outThe output of the function
[in]ndims_innumber of input dimensions
[in]dims_ininput dimensions
[in]d_inThe input to the function
[in]orderThe order of the difference
[in]dimThe dimension along which the operation is performed

afError af_diff_S (float *d_out, unsigned ndims_in, const unsigned *dims_in, const float *d_in, int order, int dim)
 Single precision, difference function.
afError af_diff_D (double *d_out, unsigned ndims_in, const unsigned *dims_in, const double *d_in, int order, int dim)
 Double precision difference function.

Detailed Description

Difference function, can be approximated to a derivative.


Function Documentation

afError af_diff_S ( float *  d_out,
unsigned  ndims_in,
const unsigned *  dims_in,
const float *  d_in,
int  order,
int  dim 
)

Single precision, difference function.

afError af_diff_D ( double *  d_out,
unsigned  ndims_in,
const unsigned *  dims_in,
const double *  d_in,
int  order,
int  dim 
)

Double precision difference function.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines