Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 449 Bytes

README.md

File metadata and controls

8 lines (6 loc) · 449 Bytes

ThomasAlgorithm

A solver for tri-diagonal matrices, commonly referred to as the Thomas Algorithm. The function takes the values of the lower, main, and upper diagonal respectively, from matrix A, as floats or integers. The b argument represents the right hand side of Ax=b. The function returns a numpy array x, which is the solution of Ax=b. The matrix must be diagonally dominant for reasonable performance. |main| > |lower| + |upper|.

Enjoy!