LinearAlgebra - Maple Programming Help

Home : Support : Online Help : Mathematics : Linear Algebra : LinearAlgebra Package : Constructors : LinearAlgebra/ToeplitzMatrix

LinearAlgebra

 ToeplitzMatrix
 construct a Toeplitz Matrix

 Calling Sequence ToeplitzMatrix(V, r, sym, cpt, options)

Parameters

 V - name, Vector or a list of algebraic values; entries in the Toeplitz Matrix r - (optional) non-negative integer; row dimension of the resulting Matrix sym - (optional) equation of the form symmetric=true or false; build a symmetric or general Toeplitz Matrix cpt - (optional) equation of the form compact=true or false; selects the compact form of the output options - (optional); constructor options for the result object

Description

 • The ToeplitzMatrix(V) function returns the Toeplitz Matrix corresponding to the values in V.
 • If T := ToeplitzMatrix(V), then T is an r x r Matrix, with entries T[i, j] = V[n+i-j] where r and n take the value (nops(V) + 1)/2.
 The row dimension of the resulting Matrix is optional in the calling sequence. It is an error if a user-supplied value of r exceeds the default value.  In this case, it is an error if nops(V) is not odd.
 • If the symmetric option (sym) is included in the calling sequence as just the symbol symmetric or in the form symmetric=true, then the result is a symmetric r x r Matrix T with T[i, j] = V[j-i+1] for i <= j.  In this case, r defaults to the number of elements in V.  It is an error for a user-supplied value for r to exceed this default.  In this case, T is built with the symmetric shape.
 Note:  ToeplitzMatrix(V, symmetric) and ToeplitzMatrix(V1) where V1 = [V[-1], V[-2], ..., V[1], V[2], ..., V[-1]] build the same Matrix (mathematically). The difference is that the former uses the symmetric shape.
 • If the compact option (cpt) is included in the calling sequence as just the symbol compact or in the form compact=true, then the result is built by using a shape function designed to minimize storage.  If the option is omitted or entered as compact=false, a full rectangular Matrix is constructed.  Generally, if space is not a consideration, the full rectangular form (the default) is more efficient.
 Note:  If the compact form is selected, any datatype specification in the constructor options is silently ignored.  The datatype of any data retrieved from the constructed Matrix is determined by the data used to build the Matrix.
 • The constructor options provide additional information (readonly, shape, storage, order, datatype, and attributes) to the Matrix constructor that builds the result. These options may also be provided in the form outputoptions=[...], where [...] represents a Maple list.  If a constructor option is provided in both the calling sequence directly and in an outputoptions option, the latter takes precedence (regardless of the order).
 • This function is part of the LinearAlgebra package, and so it can be used in the form ToeplitzMatrix(..) only after executing the command with(LinearAlgebra). However, it can always be accessed through the long form of the command by using LinearAlgebra[ToeplitzMatrix](..).

Examples

 > with(LinearAlgebra):
 > T1:=ToeplitzMatrix( [a,b,c], compact );
 ${\mathrm{T1}}{≔}\left[\begin{array}{cc}{b}& {a}\\ {c}& {b}\end{array}\right]$ (1)
 > MatrixOptions(T1, shape);
 $\left[{{\mathrm{Toeplitz}}}_{{\mathrm{false}}{,}\left[{a}{,}{b}{,}{c}\right]}\right]$ (2)
 > V := :
 > T2:=ToeplitzMatrix(V, 4, symmetric);
 ${\mathrm{T2}}{≔}\left[\begin{array}{cccc}{q}& {r}& {s}& {t}\\ {r}& {q}& {r}& {s}\\ {s}& {r}& {q}& {r}\\ {t}& {s}& {r}& {q}\end{array}\right]$ (3)
 > MatrixOptions(T2, shape);
 $\left[{\mathrm{symmetric}}\right]$ (4)
 > ToeplitzMatrix(v, 3);
 $\left[\begin{array}{ccc}{{v}}_{{3}}& {{v}}_{{2}}& {{v}}_{{1}}\\ {{v}}_{{4}}& {{v}}_{{3}}& {{v}}_{{2}}\\ {{v}}_{{5}}& {{v}}_{{4}}& {{v}}_{{3}}\end{array}\right]$ (5)