TriDiagonal-Matrix-Solver Tridiagonal Matrix solver for any size of tridiagonal matrix. Thomas Algorithm of Tridiagonal-Matrix Algorithm in C#. The algorithm can be used for solving systems of linear equations and tridiagonal matrices of any size.