ArrayDims - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Rtables, Arrays, Matrices, and Vectors : Operations : ArrayDims

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

A:=123456

(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

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam