Inclusive or exclusive scan of an array by key
Perform inclusive or exclusive scan using a given binary operation along a given dimension using a key.
Binary operations can be add, mul, min, max as defined by af_binary_op.
◆ af_scan_by_key()
C Interface generalized scan by key of an array.
- Parameters
-
[out] | out | will contain scan of the input |
[in] | key | is the key array |
[in] | in | is the input array |
[in] | dim | The dimension along which scan is performed |
[in] | op | is the type of binary operations used |
[in] | inclusive_scan | is flag specifying whether scan is inclusive |
- Returns
- AF_SUCCESS if the execution completes properly
◆ scanByKey()
C++ Interface generalized scan by key of an array.
- Parameters
-
[in] | key | is the key array |
[in] | in | is the input array |
[in] | dim | The dimension along which scan is performed |
[in] | op | is the type of binary operations used |
[in] | inclusive_scan | is flag specifying whether scan is inclusive |
- Returns
- the output containing scan of the input