Hankel: Generating a Hankel Matrix

View source: R/orthogonalBsplines.R

HankelR Documentation

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)

Details

Computes a Hankel matrix. If we denote the vector x=(x_1,…,x_n) the Hankel matrix is defined and formed as

A matrix where each antidiagonal of the matrix is constant.

Value

a matrix as defined above.

Examples

Hankel(1:6)

orthogonalsplinebasis documentation built on May 24, 2022, 1:05 a.m.