Scan an array (generalized) over a given dimension. More...
Functions | |
AFAPI array | scan (const array &in, const int dim=0, binaryOp op=AF_BINARY_ADD, bool inclusive_scan=true) |
C++ Interface to scan an array (generalized) over a given dimension. More... | |
AFAPI af_err | af_scan (af_array *out, const af_array in, const int dim, af_binary_op op, bool inclusive_scan) |
C Interface to scan an array (generalized) over a given dimension. More... | |
Scan an array (generalized) over a given dimension.
Perform inclusive or exclusive scan using a given binary operation along a given dimension.
Binary operations can be add, mul, min, max as defined by af_binary_op.
AFAPI af_err af_scan | ( | af_array * | out, |
const af_array | in, | ||
const int | dim, | ||
af_binary_op | op, | ||
bool | inclusive_scan | ||
) |
C Interface to scan an array (generalized) over a given dimension.
[out] | out | scan |
[in] | in | input array |
[in] | dim | dimension along which the scan occurs |
[in] | op | type of binary operation used |
[in] | inclusive_scan | flag specifying whether the scan is inclusive |
AFAPI array scan | ( | const array & | in, |
const int | dim = 0 , |
||
binaryOp | op = AF_BINARY_ADD , |
||
bool | inclusive_scan = true |
||
) |
C++ Interface to scan an array (generalized) over a given dimension.
[in] | in | input array |
[in] | dim | dimension along which the scan occurs, 0 denotes the first non-singleton dimension |
[in] | op | type of binary operation used |
[in] | inclusive_scan | flag specifying whether the scan is inclusive |