Forms a symmetric Hankel matrix of order \(n\) from the values in vector \(\bold{x}\)
and optionally the vector \(\bold{y}\).
Usage
hankel(x, y = NULL)
Value
A symmetric Hankel matrix of order \(n\).
Arguments
x
the first column to form the Hankel matrix.
y
the last column of the Hankel matrix. If y is not provided only
its first \(n\) skew diagonals are formed and the remaining elements are zeros.
Otherwise, it is assumed that \(x_n = y_1\), and the first entry of vector y
is discarded.