Internal function for creation of sparse shift matrix.
shiftMatrix(n, q)
Integer specifying dimensions of the shift matrix.
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.
Returns a sparse matrix (class "ngCMatrix"
).