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 vector (one-dimensional array)

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(v, vector)

type(v, 'vector'(K))

Parameters

v

-

expression

K

-

type of the coefficient field

Description

• 

This function checks whether its first argument is a Maple vector. A vector is defined to be an one-dimensional array indexed from 1.

• 

If the argument K is given, the function checks whether A is a vector with entries of type K .

• 

Also, if K is given, it is essential to quote the word vector in order to avoid confusion with the vector function in the linalg package.

• 

Note: The command vector has been superseded by Vector.

Examples

> 

type⁡array⁡1..3,1,2,3,vector

true

(1)
> 

type⁡array⁡0..2,1,2,3,vector

false

(2)
> 

v≔array⁡2,23,1

v≔2231

(3)
> 

type⁡v,vector⁡integer

false

(4)
> 

type⁡v,vector⁡rational

true

(5)

See Also

array(deprecated)

linalg(deprecated)[vector]

type/Vector

vector(deprecated)