Algosim documentation: ForwardShiftMatrix

ForwardShiftMatrix

Returns a forward shift matrix.

Syntax

Description

If n is a positive integer, then ForwardShiftMatrix(n) returns the n-dimensional forward shift matrix, that is the matrix of size n×n with 1s on the subdiagonal and 0s everywhere else.

Examples

ForwardShiftMatrix(4)
⎛0  0  0  0⎞
⎜1  0  0  0⎟
⎜0  1  0  0⎟
⎝0  0  1  0⎠

See also