Learn R Programming

ACV (version 1.0.2)

shiftMatrix: 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").