ArrayDims
return the bounds of each dimension of an Array
ArrayNumDims
return the number of dimensions of an Array
Calling Sequence
Parameters
Description
Examples
ArrayDims(A)
ArrayNumDims(A)
A
-
Array
The ArrayDims(A) function returns a sequence of integer ranges representing the bounds of each dimension of Array A.
This function is equivalent to op(2, A).
The ArrayNumDims(A) function returns the number of dimensions of Array A.
This function is equivalent to nops([ArrayDims(A)]).
These functions cannot be used on Matrices or Vectors.
A≔Array⁡1,2,3,4,5,6
A≔123456
ArrayDims returns the bounds of each dimension of an Array:
ArrayDims⁡A
1..2,1..3
The upperbound command returns the upper bound for each dimension:
upperbound⁡A
2,3
ArrayNumDims returns the number of dimensions of an Array:
ArrayNumDims⁡A
2
See Also
ArrayElems
ArrayNumElems
op
rtable
rtable_dims
upperbound
Download Help Document