Vector - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


type/Vector

check for a Vector (rtable-based)

 

Calling Sequence

Parameters

Description

Supertypes

Examples

Calling Sequence

type(expr, Vector)

type(expr, 'Vector'(R))

Parameters

expr

-

any expression

R

-

Vector shape, any Vector option, a type, 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), or if the entries of expr have the type R, in case R is a type.

  

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.

Supertypes

• 

type/rtable

Examples

> 

A≔Vector⁡1,2,3

A≔123

(1)
> 

type⁡A,Vector

true

(2)
> 

type⁡A,Vectorcolumn

true

(3)
> 

type⁡A,Vectorrow

false

(4)

Check the contents of the Vector.

> 

type⁡A,Vector⁡numeric

true

(5)

Check the shape or options of the Vector.

> 

VectorOptions⁡A

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

(6)
> 

type⁡A,Vector⁡datatype=anything,subtype=Vectorcolumn,storage=rectangular

true

(7)
> 

type⁡A,Vector⁡datatype=integer

false

(8)

See Also

Formats/ByType/Vector

rtable

type

type/rtable

type/structure

Vector

VectorOptions