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

Online Help

All Products    Maple    MapleSim


Student[LinearAlgebra]

  

Dimension

  

determine the dimension of a Matrix or a Vector

  

ColumnDimension

  

determine the column dimension of a Matrix

  

RowDimension

  

determine the row dimension of a Matrix

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Dimension(A)

RowDimension(A)

ColumnDimension(A)

Parameters

A

-

Matrix or Vector

Description

• 

The Dimension(A) command, where A is a Vector, returns the number of elements in A.  If A is a Matrix, two non-negative integers representing the row dimension and the column dimension of A, respectively, are returned.

  

Dimensions(A) is an alternate form for Dimension(A).

• 

The ColumnDimension(A) command, where A is a Matrix, returns the number of columns in A.

• 

The RowDimension(A) command, where A is a Matrix, returns the number of rows in A.

Examples

> 

with⁡StudentLinearAlgebra:

> 

V≔x,y,z,w

V≔xyzw

(1)
> 

Dimension⁡V

4

(2)
> 

A≔IdentityMatrix⁡3,5

A≔100000100000100

(3)
> 

rowdim≔RowDimension⁡A

rowdim≔3

(4)
> 

coldim≔ColumnDimension⁡A

coldim≔5

(5)
> 

m,n≔Dimensions⁡A

m,n≔3,5

(6)

See Also

LinearAlgebra[Dimension]

Student[LinearAlgebra]