Vector to vector - Maple Help

convert/vector

convert a list, an array or a Vector to a vector

 Calling Sequence convert(A, vector)

Parameters

 A - array, list, of rtable-based Vector

Description

 • The convert(A, vector) calling sequence converts any of the following objects into a vector:
 * array
 * list
 * rtable-based Vector
 • Note: The command vector has been superseded by Vector.

Examples

 > $A≔\mathrm{array}\left(0..1,-1..0,\left[\left[1,2\right],\left[3,4\right]\right]\right):$
 > $\mathrm{convert}\left(A,\mathrm{vector}\right)$
 $\left[\begin{array}{cccc}{1}& {2}& {3}& {4}\end{array}\right]$ (1)
 > $\mathrm{convert}\left(\left[1,2\right],\mathrm{vector}\right)$
 $\left[\begin{array}{cc}{1}& {2}\end{array}\right]$ (2)
 > $V≔\mathrm{Vector}\left(\left[1,2,3\right]\right)$
 ${V}{≔}\left[\begin{array}{c}{1}\\ {2}\\ {3}\end{array}\right]$ (3)
 > $\mathrm{type}\left(V,\mathrm{Vector}\right)$
 ${\mathrm{true}}$ (4)
 > $\mathrm{type}\left(V,\mathrm{vector}\right)$
 ${\mathrm{false}}$ (5)
 > $\mathrm{V1}≔\mathrm{convert}\left(V,\mathrm{vector}\right)$
 ${\mathrm{V1}}{≔}\left[\begin{array}{ccc}{1}& {2}& {3}\end{array}\right]$ (6)
 > $\mathrm{type}\left(\mathrm{V1},\mathrm{Vector}\right)$
 ${\mathrm{false}}$ (7)
 > $\mathrm{type}\left(V,\mathrm{vector}\right)$
 ${\mathrm{false}}$ (8)
 > $\mathrm{type}\left(\mathrm{V1},\mathrm{vector}\right)$
 ${\mathrm{true}}$ (9)