S3L_forall accepts the following arguments as input:
a - Parallel array to which the function will be applied.
user_fn - Pointer to the user-defined function.
fn_type - Predefined value specifying the class of functions to which the function belongs. See the Description section for a list of valid fn_type entries.
triplets - An integer vector that is used to restrict the function to a range of elements. A triplet takes the form:
inclusive lower bound inclusive upper bound stride
for each axis of the array. The stride must be positive. To apply the function to all the elements in the array, set triplets to NULL (C/C++) or to 0 (F77/F90).