LinearAlgebra - Maple Help

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

LinearAlgebra

 HankelMatrix
 construct a Hankel Matrix

 Calling Sequence HankelMatrix(L, r, cpt, options)

Parameters

 L - Vector or list of values r - (optional) non-negative integer; row dimension of the resulting Matrix cpt - (optional) BooleanOpt(compact); selects the compact form of the output options - (optional); constructor options for the result object

Description

 • The HankelMatrix(L) function returns a Hankel Matrix.
 • If H := HankelMatrix(L), then H is a symmetric r x r Matrix with H[i, j] = L[i+j-1].  It is an error if L has an even number of elements.  By default, H is built with 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 HankelMatrix(..) only after executing the command with(LinearAlgebra). However, it can always be accessed through the long form of the command by using LinearAlgebra[HankelMatrix](..).

Examples

 > $\mathrm{with}\left(\mathrm{LinearAlgebra}\right):$
 > $\mathrm{H1}≔\mathrm{HankelMatrix}\left(\left[\frac{1}{11},\frac{3}{11},\frac{5}{11}\right],\mathrm{compact}\right)$
 ${\mathrm{H1}}{:=}\left[\begin{array}{cc}\frac{{1}}{{11}}& \frac{{3}}{{11}}\\ \frac{{3}}{{11}}& \frac{{5}}{{11}}\end{array}\right]$ (1)
 > $\mathrm{MatrixOptions}\left(\mathrm{H1},\mathrm{shape}\right)$
 $\left[{{\mathrm{Hankel}}}_{\left[\frac{{1}}{{11}}{,}\frac{{3}}{{11}}{,}\frac{{5}}{{11}}\right]}\right]$ (2)
 > $L≔⟨f,g,h,i,j,k,l,m,n⟩:$
 > $\mathrm{H2}≔\mathrm{HankelMatrix}\left(L,4\right)$
 ${\mathrm{H2}}{:=}\left[\begin{array}{cccc}{f}& {g}& {h}& {i}\\ {g}& {h}& {i}& {j}\\ {h}& {i}& {j}& {k}\\ {i}& {j}& {k}& {l}\end{array}\right]$ (3)
 > $\mathrm{MatrixOptions}\left(\mathrm{H2},\mathrm{shape}\right)$
 $\left[{\mathrm{symmetric}}\right]$ (4)