Student[LinearAlgebra] - Maple Programming Help

Home : Support : Online Help : Education : Student Package : Linear Algebra : Computation : Constructors : Student/LinearAlgebra/ZeroMatrix

Student[LinearAlgebra]

 ZeroMatrix
 construct a zero Matrix
 ZeroVector
 construct a zero Vector

 Calling Sequence ZeroMatrix(r, c, options) ZeroVector[o](d, options)

Parameters

 r - (optional) non-negative integer; row dimension of the resulting Matrix c - (optional) non-negative integer; column dimension of the resulting Matrix d - (optional) non-negative integer; dimension of the resulting Vector [o] - (optional) use either [row] or [column] to specify the orientation of the resulting Vector options - (optional) parameters; for a complete list, see LinearAlgebra[ZeroMatrix]

Description

 • The ZeroMatrix(r, c) command returns an $rxc$ Matrix in which all the entries are zero.
 The ZeroMatrix(r, r) command returns an $rxr$ Matrix in which all the entries are zero.
 The ZeroMatrix() command returns an $0x0$ Matrix.
 • The ZeroVector(d) command returns a d-dimensional Vector in which all the entries are zero.
 The ZeroVector[row](d) command behaves like ZeroVector(d) except that a row Vector is returned.  If the orientation option is omitted or if ZeroVector[column](d) is used, a column Vector is returned.
 If the dimension is not provided, it defaults to zero.

Examples

 > $\mathrm{with}\left(\mathrm{Student}[\mathrm{LinearAlgebra}]\right):$
 > $\mathrm{ZeroMatrix}\left(4\right)$
 $\left[\begin{array}{rrrr}{0}& {0}& {0}& {0}\\ {0}& {0}& {0}& {0}\\ {0}& {0}& {0}& {0}\\ {0}& {0}& {0}& {0}\end{array}\right]$ (1)
 > $\mathrm{ZeroVector}[\mathrm{row}]\left(3\right)$
 $\left[\begin{array}{ccc}{0}& {0}& {0}\end{array}\right]$ (2)
 > $\mathrm{ZeroVector}\left(2\right)$
 $\left[\begin{array}{r}{0}\\ {0}\end{array}\right]$ (3)