Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

Intrinsic Functions for Arrays and Coarrays

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.

IALL

Reduces an array by the IAND function.

IANY

Reduces an array by the IOR function.

IPARITY

Reduces an array by the IEOR function.

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.

NORM2

Returns the L 2 norm of an array.

PACK

Packs an array into a vector (one-dimensional array) of a (optional) size using a mask.

PRODUCT

Returns product of elements of an array along a (optional) dimension that meet conditions in a (optional) mask.

RANK

Returns the rank of a data object.

REDUCE

Performs user-specified array reduction.

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 an 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 following table lists intrinsic functions for coarrays.

Name

Description

COSHAPE

Returns the sizes of codimensions of a coarray.

EVENT_QUERY

Returns the event count.

FAILED_IMAGES

Returns the indices of images that are no longer responding.

IMAGE_INDEX

Returns the image index corresponding to an element of a coarray with a given set of cosubscripts.

IMAGE_STATUS

Returns the execution status of an image.

LCOBOUND

Returns the lower cobounds of a coarray.

NUM_IMAGES

Returns the number of images.

STOPPED_IMAGES

Returns the indices images that have initiated termination.

TEAM_NUMBER

Returns the team number of its argument.

THIS_IMAGE

Returns the index of the invoking image, or the cosubscripts for this image.

UCOBOUND

Returns the upper cobounds of a coarray.