Documentation
|
|
The C++ interface for accum. More...
| array | accum (const array &input, int dim=-1, af_op_t op=sum_t, bool isupcast=false) |
| accumulated sum More... | |
The C++ interface for accum.
Returns the accumulated sum of a set of elements
| array af::accum | ( | const array & | input, |
| int | dim = -1, |
||
| af_op_t | op = sum_t, |
||
| bool | isupcast = false |
||
| ) |
accumulated sum
| [in] | input | |
| [in] | dim | dimension along which to operate (-1 indicates first non-singleton dimension) |
| [in] | op | accumulation type: sum_t addition, prod_t multiplication |
| [in] | isupcast | perform internal accumulation in double-precision if true (default false) |