Perform exclusive sum along specified dimension. More...
Functions | |
AFAPI array | accum (const array &in, const int dim=0) |
C++ Interface exclusive sum (cumulative sum) of an array. More... | |
AFAPI af_err | af_accum (af_array *out, const af_array in, const int dim) |
C Interface exclusive sum (cumulative sum) of an array. More... | |
Perform exclusive sum along specified dimension.
This function performs the operation across all batches present in the input simultaneously.
C++ Interface exclusive sum (cumulative sum) of an array.
[in] | in | is the input array |
[in] | dim | The dimension along which exclusive sum is performed |
C Interface exclusive sum (cumulative sum) of an array.
[out] | out | will contain exclusive sums of the input |
[in] | in | is the input array |
[in] | dim | The dimension along which exclusive sum is performed |