On exit, the value of
val [
]
is the maximum value of
src [
]
across allowed values of . The value of
pos [
]
is the smallest value at which this maximum occurs.
As implied by the replicated alignment of the result arrays, the results are broadcast in the process dimension associated with dimension dim of the source array.