Array - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


type/Array

check for a Array (rtable-based)

 

Calling Sequence

Parameters

Description

Subtypes

Supertypes

Examples

Calling Sequence

type(expr, Array)

type(expr, 'Array'(R))

Parameters

expr

-

any expression

R

-

Array indexing function, any Array option, name square, or an expression sequence of these

Description

• 

A Maple Array is an rtable with subtype option Array.

• 

The type(expr, Array) function returns true if expr is a Maple Array.

• 

The type(expr, 'Array'(R)) function returns true if expr is a Maple Array with the indexing functions or options given in R (see Array for permissible options), or if the entries of expr have the type R, in case R is a type.

• 

If R includes the name 'square', the dimensions of the Array are checked to see if they are all the same size (they do not have to have the same start and end values).

  

Note:  It is essential to quote the word Array in this form of the calling sequence in order to avoid confusion with the Array(..) constructor function.

Subtypes

• 

type/ByteArray

Supertypes

• 

type/rtable

Examples

AArray1,2,3,4,5,6,7,8,9

A123456789

(1)

typeA,Array

true

(2)

Check the contents of the Array.

typeA,Arraynumeric

true

(3)

Check the shape or options of the Array.

rtable_optionsA

datatype=anything,subtype=Array,storage=rectangular,order=Fortran_order

(4)

typeA,Arraysquare,datatype=anything,order=Fortran_order

true

(5)

typeA,Arraydatatype=integer

false

(6)

See Also

Array

rtable

rtable_options

type

type/rtable

type/structure