language-icon Old Web
English
Sign In

Tridiagonal matrix algorithm

In numerical linear algebra, the tridiagonal matrix algorithm, also known as the Thomas algorithm (named after Llewellyn Thomas), is a simplified form of Gaussian elimination that can be used to solve tridiagonal systems of equations. A tridiagonal system for n unknowns may be written as In numerical linear algebra, the tridiagonal matrix algorithm, also known as the Thomas algorithm (named after Llewellyn Thomas), is a simplified form of Gaussian elimination that can be used to solve tridiagonal systems of equations. A tridiagonal system for n unknowns may be written as where a 1 = 0 {displaystyle a_{1}=0,} and c n = 0 {displaystyle c_{n}=0,} . For such systems, the solution can be obtained in O ( n ) {displaystyle O(n)} operations instead of O ( n 3 ) {displaystyle O(n^{3})} required by Gaussian elimination. A first sweep eliminates the a i {displaystyle a_{i}} 's, and then an (abbreviated) backward substitution produces the solution. Examples of such matrices commonly arise from the discretization of 1D Poisson equation and natural cubic spline interpolation. Thomas' algorithm is not stable in general, but is so in several special cases, such as when the matrix is diagonally dominant (either by rows or columns) or symmetric positive definite; for a more precise characterization of stability of Thomas' algorithm, see Higham Theorem 9.12. If stability is required in the general case, Gaussian elimination with partial pivoting (GEPP) is recommended instead.

[ "Tridiagonal matrix", "tridiagonal linear systems" ]
Parent Topic
Child Topic
    No Parent Topic