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

Inclusive Sum

Inclusive Scan

Inclusive Sum of input matrix alongpecified dimension. More...

Device pointer interface: Inclusive sum

Parameters:
d_outOutput Matrix
ndimsNumber dimensions for the input
dimsDimensions of the input
d_inInput Matrix
batchNumber of tiles in input matrix
dimensionDimension along which result is computed (0 along column, 1 along row)
[in]isupcastAccumulate internally in double-precision if true

afError af_accum_S (float *d_out, unsigned ndims, unsigned *dims, const float *d_in, unsigned batch, int dimension, int type, bool isupcast)
 Single precision, inclusive sum.
afError af_accum_D (double *d_out, unsigned ndims, unsigned *dims, const double *d_in, unsigned batch, int dimension, int type)
 Double precision, inclusive sum.
afError af_accum_I (int *d_out, unsigned ndims, unsigned *dims, const int *d_in, unsigned batch, int dimension, int type)
 32-bit signed integer, inclusive sum
afError af_accum_U (unsigned *d_out, unsigned ndims, unsigned *dims, const unsigned *d_in, unsigned batch, int dimension, int type)
 32-bit unsigned integer, inclusive sum
afError af_accum_C (cuComplex *d_out, unsigned ndims, unsigned *dims, const cuComplex *d_in, unsigned batch, int dimension, int type, bool isupcast)
 Complex, Single precision, inclusive sum.
afError af_accum_Z (cuDoubleComplex *d_out, unsigned ndims, unsigned *dims, const cuDoubleComplex *d_in, unsigned batch, int dimension, int type)
 Complex, Double precision, inclusive sum.

Detailed Description

Inclusive Sum of input matrix alongpecified dimension.


Function Documentation

afError af_accum_S ( float *  d_out,
unsigned  ndims,
unsigned *  dims,
const float *  d_in,
unsigned  batch,
int  dimension,
int  type,
bool  isupcast 
)

Single precision, inclusive sum.

afError af_accum_D ( double *  d_out,
unsigned  ndims,
unsigned *  dims,
const double *  d_in,
unsigned  batch,
int  dimension,
int  type 
)

Double precision, inclusive sum.

afError af_accum_I ( int *  d_out,
unsigned  ndims,
unsigned *  dims,
const int *  d_in,
unsigned  batch,
int  dimension,
int  type 
)

32-bit signed integer, inclusive sum

afError af_accum_U ( unsigned *  d_out,
unsigned  ndims,
unsigned *  dims,
const unsigned *  d_in,
unsigned  batch,
int  dimension,
int  type 
)

32-bit unsigned integer, inclusive sum

afError af_accum_C ( cuComplex *  d_out,
unsigned  ndims,
unsigned *  dims,
const cuComplex *  d_in,
unsigned  batch,
int  dimension,
int  type,
bool  isupcast 
)

Complex, Single precision, inclusive sum.

afError af_accum_Z ( cuDoubleComplex *  d_out,
unsigned  ndims,
unsigned *  dims,
const cuDoubleComplex *  d_in,
unsigned  batch,
int  dimension,
int  type 
)

Complex, Double precision, inclusive sum.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines