The zero Indexing Function - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

The zero Indexing Function

Description

 • The zero indexing function can be used to construct rtable objects of type Array, Matrix, or Vector.
 • In the construction of a Matrix, the zero indexing function specifies a Matrix whose entries all have the value 0.
 The specification is the same in the construction of Arrays and Vectors.
 • Under normal circumstances, Maple does not allocate any storage for the entries.

Examples

 > $V≔\mathrm{Vector}\left(5,\mathrm{shape}=\mathrm{zero}\right)$
 ${V}{≔}\left[\begin{array}{c}{0}\\ {0}\\ {0}\\ {0}\\ {0}\end{array}\right]$ (1)
 > $M≔\mathrm{Matrix}\left(1..4,1..4,\mathrm{shape}=\mathrm{zero}\right)$
 ${M}{≔}\left[\begin{array}{cccc}{0}& {0}& {0}& {0}\\ {0}& {0}& {0}& {0}\\ {0}& {0}& {0}& {0}\\ {0}& {0}& {0}& {0}\end{array}\right]$ (2)

 See Also