You copied the Doc URL to your clipboard.

Array reduction functions

Functions for determining information from, or calculating using, the elements in an array.

Array reduction functions

Intrinsic

Description

Num. of Arguments

Argument Type

Result

ALL

Determine if all array values are true.

1

2

LOGICAL

LOGICAL, INTEGER

LOGICAL

LOGICAL

ANY

Determine if any array value is true.

1

2

LOGICAL

LOGICAL, INTEGER

LOGICAL

LOGICAL

COUNT

Count true values in array.

1

2

LOGICAL

LOGICAL, INTEGER

INTEGER

INTEGER

MAXLOC

Determine the position of the array element with the maximum value.

1

2

2

3

1

2

2

3

INTEGER

INTEGER, LOGICAL

INTEGER, INTEGER

INTEGER, INTEGER, LOGICAL

REAL

REAL, LOGICAL

REAL, INTEGER

REAL, INTEGER, LOGICAL

INTEGER

INTEGER

INTEGER

INTEGER

REAL

REAL

REAL

REAL

MAXVAL

Determine the maximum value of the array elements.

1

2

2

3

1

2

2

3

INTEGER

INTEGER, LOGICAL

INTEGER, INTEGER

INTEGER, INTEGER, LOGICAL

REAL

REAL, LOGICAL

REAL, INTEGER

REAL, INTEGER, LOGICAL

INTEGER

INTEGER

INTEGER

INTEGER

REAL

REAL

REAL

REAL

MINLOC

Determine the position of the array element with the minimum value.

1

2

2

3

1

2

2

3

INTEGER

INTEGER, LOGICAL

INTEGER, INTEGER

INTEGER, INTEGER, LOGICAL

REAL

REAL, LOGICAL

REAL, INTEGER

REAL, INTEGER, LOGICAL

INTEGER

INTEGER

INTEGER

INTEGER

REAL

REAL

REAL

REAL

MINVAL

Determine the minimum value of the array elements.

1

2

2

3

1

2

2

3

INTEGER

INTEGER, LOGICAL

INTEGER, INTEGER

INTEGER, INTEGER, LOGICAL

REAL

REAL, LOGICAL

REAL, INTEGER

REAL, INTEGER, LOGICAL

INTEGER

INTEGER

INTEGER

INTEGER

REAL

REAL

REAL

REAL

PRODUCT

Calculate the product of the elements of an array.

1

2

2

3

NUMERIC

NUMERIC, LOGICAL

NUMERIC, INTEGER

NUMERIC, INTEGER, LOGICAL

NUMERIC

NUMERIC

NUMERIC

NUMERIC

SUM

Calculate the sum of the elements of an array.

1

2

2

3

NUMERIC

NUMERIC, LOGICAL

NUMERIC, INTEGER

NUMERIC, INTEGER, LOGICAL

NUMERIC

NUMERIC

NUMERIC

NUMERIC

Was this page helpful? Yes No