ColumnDimension - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


LinearAlgebra

  

Dimension

  

determine the dimension of a Matrix or a Vector

  

RowDimension

  

determine the row dimension of a Matrix

  

ColumnDimension

  

determine the column 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) function, where A is a Vector, returns a non-negative integer that represents 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 RowDimension(A) function, where A is a Matrix, returns a non-negative integer that represents the number of rows in A.

• 

The ColumnDimension(A) function, where A is a Matrix, returns a non-negative integer that represents the number of columns in A.

• 

This function is part of the LinearAlgebra package, and so it can be used in the form Dimension(..) only after executing the command with(LinearAlgebra). However, it can always be accessed through the long form of the command by using LinearAlgebra[Dimension](..).

Examples

withLinearAlgebra:

Vx,y,z,w

Vxyzw

(1)

DimensionV

4

(2)

AIdentityMatrix3,5

A100000100000100

(3)

rowdimRowDimensionA

rowdim3

(4)

coldimColumnDimensionA

coldim5

(5)

m,nDimensionA

m,n3,5

(6)

See Also

Matrix

Vector