Learn R Programming

orthogonalsplinebasis (version 0.1.7)

Hankel: Generating a Hankel Matrix

Description

Functions to generate a Hankel matrix.

Usage

Hankel(x, nrow = length(x)%/%2, ncol = length(x)%/%2)

Arguments

x

numeric vector to specify the entries of the matrix. Should have an even number of entries.

nrow

integer, must be at most length(x)

ncol

integer, must be at most length(x)

Value

a matrix as defined above.

Details

Computes a Hankel matrix. If we denote the vector \(x=(x_1,\dots,x_n)\) the Hankel matrix is defined and formed as $$H=\left( \begin{array}{ccccc} x_1&x_2&x_3&\cdots&x_{1/2}\\ x_2&x_3&&\vdots&\vdots\\ x_3&&\vdots&&\vdots\\ \vdots&\vdots&&&\vdots\\ x_{1/2}&\cdots&\cdots&\cdots&x_n \end{array}\right). $$

Examples

Run this code
# NOT RUN {
Hankel(1:6)
# }

Run the code above in your browser using DataLab