On exit, the value of
res [
]
is
where N is the extent of the source array in dimension dim. The sum is performed in an unspecified order.
As implied by the replicated alignment of the result array, results are broadcast in the process dimension associated with dimension dim of the source array.