linalg(deprecated)/vectdim - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : linalg(deprecated)/vectdim

linalg(deprecated)

  

vectdim

  

determine the dimension of a vector

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

vectdim(v)

vectdim(L)

Parameters

v

-

vector

L

-

list

Description

• 

Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[Dimension], instead.

  

- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.

• 

The function vectdim determines the dimension of the given vector.

• 

If vectdim is given a vector v, then the dimension of (number of elements in) v is returned; if a list L is given to vectdim, then the number of elements in the list is returned.

• 

The command with(linalg,vectdim) allows the use of the abbreviated form of this command.

Examples

Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[Dimension], instead.

> 

with⁡linalg:

> 

v≔vector⁡x,y,z

v≔xyz

(1)
> 

vectdim⁡v

3

(2)
> 

vectdim⁡1,2,3,4

4

(3)
> 

u≔vector⁡2

u≔`?`1`?`2

(4)
> 

vectdim⁡u

2

(5)

See Also

linalg(deprecated)[coldim]

linalg(deprecated)[rowdim]

LinearAlgebra