type/vector
check for vector (one-dimensional array)
Calling Sequence
Parameters
Description
Examples
type(v, vector)
type(v, 'vector'(K))
v
-
expression
K
type of the coefficient field
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.
type⁡array⁡1..3,1,2,3,vector
true
type⁡array⁡0..2,1,2,3,vector
false
v≔array⁡2,23,1
v≔2231
type⁡v,vector⁡integer
type⁡v,vector⁡rational
See Also
array(deprecated)
linalg(deprecated)[vector]
type/Vector
vector(deprecated)
Download Help Document