Intrinsic Functions for Arrays

The following table lists intrinsic functions for arrays.

Name Description
ALL Determines whether all array values meet the conditions in a mask along a (optional) dimension.
ANY Determines whether any array values meet the conditions in a mask along a (optional) dimension.
COUNT Counts the number of array elements that meet the conditions in a mask along a (optional) dimension.
CSHIFT Performs a circular shift along a (optional) dimension.
DOT_PRODUCT Performs dot-product multiplication on vectors (one-dimensional arrays).
EOSHIFT Shifts elements off one end of array along a (optional) dimension and copies (optional) boundary values in other end.
LBOUND Returns lower dimensional bounds of an array along a (optional) dimension.
MATMUL Performs matrix multiplication on matrices (two-dimensional arrays).
MAXLOC Returns the location of the maximum value in an array meeting conditions in a (optional) mask along a (optional) dimension.
MAXVAL Returns the maximum value in an array along a (optional) dimension that meets conditions in a (optional) mask.
MERGE Merges two arrays according to conditions in a mask.
MINLOC Returns the location of the minimum value in an array meeting conditions in a (optional) mask along a (optional) dimension.
MINVAL Returns the minimum value in an array along a (optional) dimension that meets conditions in a (optional) mask.
PACK Packs an array into a vector (one-dimensional array) of an (optional) size using a mask.
PRODUCT Returns product of elements of an array along a (optional) dimension that meet conditions in a (optional) mask.
RESHAPE Reshapes an array with (optional) subscript order, padded with (optional) array elements.
SHAPE Returns the shape of an array.
SIZE Returns the extent of array along a (optional) dimension.
SPREAD Replicates an array by adding a dimension.
SUM Sums array elements along a (optional) dimension that meet conditions of an (optional) mask.
TRANSPOSE Transposes a two-dimensional array.
UBOUND Returns upper dimensional bounds of an array along a (optional) dimension.
UNPACK Unpacks a vector (one-dimensional array) into an array under a mask padding with values from a field.

The DIMENSION statement identifies variables as arrays.