You copied the Doc URL to your clipboard.

Array construction manipulation functions

Functions for constructing and manipulating arrays.

Array construction and manipulation functions

Intrinsic

Description

Num. of Arguments

Argument Type

Result

CSHIFT

Perform circular shift on an array.

2

3
ARRAY, INTEGER

ARRAY, INTEGER, INTEGER
ARRAY

ARRAY

OESHIFT

Perform end-off shift on an array.

2

3


3


4
ARRAY, INTEGER

ARRAY, INTEGER,
Any

ARRAY, INTEGER,
INTEGER

ARRAY, INTEGER, Any, INTEGER
ARRAY

ARRAY


ARRAY


ARRAY, ARRAY

MERGE

Merge two arguments based on the logical mask.

3

Any, Any, LOGICAL The second argument must be of the same type as the first argument.

Any

PACK

Pack an array into a rank-one array.

2

3
ARRAY, LOGICAL

ARRAY, LOGICAL, VECTOR
ARRAY

ARRAY

RESHIFT

Change the shape of an array.

2

3


3


4
ARRAY, INTEGER

ARRAY, INTEGER,
ARRAY

ARRAY, INTEGER,
INTEGER

ARRAY, INTEGER, ARRAY, INTEGER
ARRAY

ARRAY


ARRAY


ARRAY

SPREAD

Replicate an array by adding a dimension.

3

Any, INTEGER, INTEGER

ARRAY

TRANSPOSE

Transpose an array of rank two.

1

ARRAY (m, n)

ARRAY (n, m)

UNPACK

Unpack a rank-one array into an array of multiple dimensions.

3

VECTOR, LOGICAL, ARRAY

ARRAY

Note

All ARRAY outputs are the same type as the argument supplied.

Was this page helpful? Yes No