Numerical Methods

139_Thomas Algorithm

elif 2024. 4. 17. 23:03

A tridiagonal matrix is a square matrix in which only the main diagonal and the diagonals immediately above and below the main diagonal contain non-zero elements, with all other elements being zero.

 

 

In this post, I'll discuss the Thomas algorithm, a method for finding solutions to systems involving such tridiagonal matrices without having to compute the inverse of matrix A. This algorithm can conveniently work with multiple right-hand side vectors and compute solutions without the need to calculate the inverse matrix.

 

 

First, the decomposition can be compute as follows.

 

 

Therefore, 

 

 

Therefore, the matrix can be represented as follows.

 

 

If the same matrix is represented using LU decomposition, it would be as follows.

 

 

The values can be seen to match those of the LU decomposition. Forward substitution can be represented as follows.

 

 

Then, the solution can be obtained through back substitution using the $U$ matrix.

 

'Numerical Methods' 카테고리의 다른 글

141_Gauss-Seidel Method  (1) 2024.04.19
140_Cholesky Decomposition  (0) 2024.04.18
138_Naive Gauss Elimination  (0) 2024.04.16
137_Bairstow's Method Example  (0) 2024.04.15
136_Bairstow's Method  (0) 2024.04.14