9.218. PRODUCT

9.218 PRODUCT — Product of array elements

Description:

Multiplies the elements of ARRAY along dimension DIM if the corresponding element in MASK is TRUE.

Standard:

Fortran 95 and later

Class:

Transformational function

Syntax:
RESULT = PRODUCT(ARRAY[, MASK])
RESULT = PRODUCT(ARRAY, DIM[, MASK])
Arguments:
ARRAY Shall be an array of type INTEGER, REAL or COMPLEX.
DIM (Optional) shall be a scalar of type INTEGER with a val