A square matrix with nonzero elements only on the diagonal and slots horizontally or vertically adjacent the diagonal (i.e., along the subdiagonal and superdiagonal),
Computing the determinant of such a matrix requires only
(as opposed to
)
arithmetic operations (Acton 1990, p. 332). Efficient solution of the matrix
equation
for
,
where
is a tridiagonal matrix, can be performed in the Wolfram
Language using LinearSolve
on
,
represented as a SparseArray.