1 Answers

In numerical linear algebra, the tridiagonal matrix algorithm, also known as the Thomas algorithm , 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 {\displaystyle O} operations instead of O {\displaystyle O} required by Gaussian elimination. A first sweep eliminates the a i {\displaystyle a_{i}} 's, and then an 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 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 is recommended instead.

4 views

Related Questions