hankel {fastmatrix} | R Documentation |
Form a symmetric Hankel matrix
Description
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)
Arguments
x |
the first column to form the Hankel matrix. |
y |
the last column of the Hankel matrix. If |
Value
A symmetric Hankel matrix of order n
.
Examples
x <- 1:4
y <- c(4,6,8,10)
# H4
hankel(x)
# H({1,2,3,4},{4,6,8,10})
hankel(x, y)
[Package fastmatrix version 0.6 Index]