Student[LinearAlgebra] - Maple Programming Help

Home : Support : Online Help : Education : Student Package : Linear Algebra : Computation : Queries : Student/LinearAlgebra/Dimension

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 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

 > $\mathrm{with}\left(\mathrm{Student}[\mathrm{LinearAlgebra}]\right):$
 > $V≔⟨x,y,z,w⟩$
 ${V}{≔}\left[\begin{array}{c}{x}\\ {y}\\ {z}\\ {w}\end{array}\right]$ (1)
 > $\mathrm{Dimension}\left(V\right)$
 ${4}$ (2)
 > $A≔\mathrm{IdentityMatrix}\left(3,5\right)$
 ${A}{≔}\left[\begin{array}{rrrrr}{1}& {0}& {0}& {0}& {0}\\ {0}& {1}& {0}& {0}& {0}\\ {0}& {0}& {1}& {0}& {0}\end{array}\right]$ (3)
 > $\mathrm{rowdim}≔\mathrm{RowDimension}\left(A\right)$
 ${\mathrm{rowdim}}{≔}{3}$ (4)
 > $\mathrm{coldim}≔\mathrm{ColumnDimension}\left(A\right)$
 ${\mathrm{coldim}}{≔}{5}$ (5)
 > $m,n≔\mathrm{Dimensions}\left(A\right)$
 ${m}{,}{n}{≔}{3}{,}{5}$ (6)