Algosim documentation: BackwardShiftMatrix

BackwardShiftMatrix

Returns a backward shift matrix.

Syntax

Description

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

Examples

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

See also