On exit, the value of
res [
]
is the maximum value of
src [
]
across allowed values of .
As implied by the replicated alignment of the result array, the results are broadcast in the process dimension associated with dimension dim of the source array.