type/Vector - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Type Checking : Types : type/Vector

type/Vector

check for a Vector (rtable-based)

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(expr, Vector)

type(expr, 'Vector'(R))

Parameters

expr

-

any expression

R

-

Vector shape, any Vector option, or an expression sequence of these

Description

• 

A Maple Vector is an rtable with subType option Vector.

• 

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

• 

The type(expr, 'Vector'(R)) function returns true if expr is a Maple Vector with the shapes or options given in R (see Vector for permissible shapes and options).

  

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

Examples

AVector1,2,3

A:=123

(1)

typeA,Vector

true

(2)

typeA,Vector[column]

true

(3)

typeA,Vector[row]

false

(4)

Check the contents of the Vector.

typeA,'Vector'numeric

true

(5)

Check the shape or options of the Vector.

VectorOptionsA

shape=,datatype=anything,orientation=column,storage=rectangular,order=Fortran_order

(6)

typeA,'Vector'datatype=anything,subtype=Vector[column],storage=rectangular

true

(7)

typeA,'Vector'datatype=integer

false

(8)

See Also

rtable

type

type/rtable

type/structure

Vector

VectorOptions

 


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