S3L_reduce performs a predefined reduction function over all elements of a parallel array. The array is described by the S3L array handle argument A. The argument op specifiesthe type of reduction operations, which can be one of the following:
S3L_OP_SUM - Finds the sum of all the elements.
S3L_OP_MIN - Finds the smallest value among all the elements.
S3L_OP_MAX - Finds the largest value among all the elements.