Executing the schedule multiplies together all elements of the array for which the corresponding element of the mask array is non-zero. The mulitplication is performed in an unspecified order. The result value, written to *res, is broadcast to all members of the active process group.