TRIDIAGONAL MATRIX ALGORITHM
The 'tridiagonal matrix algorithm' ('TDMA'), 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 may be written as
:
where and . In matrix form, this system is written as
:
For such systems, the solution can be obtained in operations instead of required by Gaussian elimination. A first sweep eliminates the 's, and then an (abbreviated) backward substitution produces the solution. Example of such matrices commonly arise from the discretization of 1D problems (e.g. the 1D Poisson problem).
Forward elimination phase
:
:
: for ''k'' = 2 step 1 until ''n'' do
::
::
::
: end loop (''k'')
Backward substitution phase
:
: for ''k'' = ''n''−1 step −1 until 1 do
::
: end loop (''k'')
In some situations, particularly those involving periodic boundary conditions, a slightly perturbed form of the tridiagonal system may need to be solved:
:
:
:
In this case, we can make use of the Sherman-Morrison formula to avoid the additional operations of Gaussian elimination and still use the Thomas algorithm.
In other situations, the system of equations may be 'block tridiagonal' (see block matrix), with smaller submatrices arranged as the individual elements in the above matrix system(e.g. the 2D Poisson problem). Simplified forms of Gaussian elimination have been developed for these situations.
Thomas algorithm - SCILAB
Thomas algorithm for tridiagonal superior periodic matrix - SCILAB
★ Elementary Numerical Analysis, Conte, S.D., and deBoor, C., , , McGraw-Hill, New York., 1972,
★
:
where and . In matrix form, this system is written as
:
For such systems, the solution can be obtained in operations instead of required by Gaussian elimination. A first sweep eliminates the 's, and then an (abbreviated) backward substitution produces the solution. Example of such matrices commonly arise from the discretization of 1D problems (e.g. the 1D Poisson problem).
| Contents |
| Algorithm |
| Variants |
| Links |
| References |
Algorithm
Forward elimination phase
:
:
: for ''k'' = 2 step 1 until ''n'' do
::
::
::
: end loop (''k'')
Backward substitution phase
:
: for ''k'' = ''n''−1 step −1 until 1 do
::
: end loop (''k'')
Variants
In some situations, particularly those involving periodic boundary conditions, a slightly perturbed form of the tridiagonal system may need to be solved:
:
:
:
In this case, we can make use of the Sherman-Morrison formula to avoid the additional operations of Gaussian elimination and still use the Thomas algorithm.
In other situations, the system of equations may be 'block tridiagonal' (see block matrix), with smaller submatrices arranged as the individual elements in the above matrix system(e.g. the 2D Poisson problem). Simplified forms of Gaussian elimination have been developed for these situations.
Links
Thomas algorithm - SCILAB
Thomas algorithm for tridiagonal superior periodic matrix - SCILAB
References
★ Elementary Numerical Analysis, Conte, S.D., and deBoor, C., , , McGraw-Hill, New York., 1972,
★
This article provided by Wikipedia. To edit the contents of this article, click here for original source.
psst.. try this: add to faves

العربية
中国
Français
Deutsch
Ελληνική
हिन्दी
Italiano
日本語
Português
Русский
Español