Next: Array Reduction Intrinsics (Cont'd)
Up: Selected Intrinsic Functions
Previous: Array Location Intrinsics
- PRODUCT(SOURCE[,DIM][,MASK]) -- product of array elements
(in an optionally specified dimension under an optional mask);
- SUM(SOURCE[,DIM][,MASK]) -- sum of array elements (in an
optionally specified dimension under an optional mask).
For example, if
PRINT*, PRODUCT(A)
PRINT*, PRODUCT(A,DIM=1)
PRINT*, PRODUCT(A,DIM=2)
gives
720
2 12 30
15 48
Next: Array Reduction Intrinsics (Cont'd)
Up: Selected Intrinsic Functions
Previous: Array Location Intrinsics
Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 18:56:08 GMT 1996Not for commercial use.