Topic summary

Thomas algorithm

Thomas algorithm

Extracted from the Wikipedia article Tridiagonal matrix algorithm.

Variants

In this case the coefficients and are, generally speaking, non-zero, so their presence does not allow to apply the Thomas algorithm directly. We can therefore consider and as following: Where is a parameter to be chosen. The matrix A can be reconstructed as . The solution is then obtained in the following way: first we solve two tridiagonal systems of equations applying the Thomas algorithm: