ArrayDims - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


ArrayDims

return the bounds of each dimension of an Array

ArrayNumDims

return the number of dimensions of an Array

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

ArrayDims(A)

ArrayNumDims(A)

Parameters

A

-

Array

Description

• 

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.

Examples

AArray1,2,3,4,5,6

A123456

(1)

ArrayDims returns the bounds of each dimension of an Array:

ArrayDimsA

1..2,1..3

(2)

The upperbound command returns the upper bound for each dimension:

upperboundA

2,3

(3)

ArrayNumDims returns the number of dimensions of an Array:

ArrayNumDimsA

2

(4)

See Also

Array

ArrayElems

ArrayNumElems

op

rtable

rtable_dims

upperbound

 


Download Help Document