shiftMatrix: Construct shift matrix

View source: R/ShiftMatrix.R

shiftMatrixR Documentation

Construct shift matrix

Description

Internal function for creation of sparse shift matrix.

Usage

shiftMatrix(n, q)

Arguments

n

Integer specifying dimensions of the shift matrix.

q

Integer specifying the order of the shift matrix. Value q = 1 (resp. q = -1) indicates the upper (resp. lower) shift matrix. Larger (resp. smaller) values represent higher powers of the respective shift matrices.

Value

Returns a sparse matrix (class "ngCMatrix").


ACV documentation built on April 5, 2022, 5:05 p.m.