Documentation
|
|
Sum elements in an array. More...
Modules | |
| sum | |
| The C++ interface for sum. | |
| af_sum | |
| the C interface for sum | |
Sum elements in an array.
Sum is a reduction operation that computes the arithmetic sum of the elements in an array. The first sum function sums elements along a specific dimension of the array. The defualt dimension is the first non-singleton dimension.
The second form of sum is templated, and returns the sum of all array elements to the host.