use the tridiagonal matrix algorithm to solve a tridiagonal matrix

tridiagmatrix(L, D, U, b)

Arguments

L

vector of entries below the main diagonal

D

vector of entries on the main diagonal

U

vector of entries above the main diagonal

b

vector of the right-hand side of the linear system

Value

the solution vector

Details

tridiagmatrix uses the tridiagonal matrix algorithm to solve a tridiagonal matrix.

See also