Go to the source code of this file.
Classes | |
class | LaTridiagFactDouble |
Functions | |
void | LaTridiagMatFactorize (const LaTridiagMatDouble &A, LaTridiagFactDouble &AF) |
void | LaLinearSolve (LaTridiagFactDouble &AF, LaGenMatDouble &X, const LaGenMatDouble &B) |
Class for the LU factorization of a tridiagonal matrix.
Note: It is unclear whether the design of this class needs a major overhaul. Do not use this unless you are really sure you understand what this class does.
void LaTridiagMatFactorize | ( | const LaTridiagMatDouble & | A, | |
LaTridiagFactDouble & | AF | |||
) |
Calculate the LU factorization of a tridiagonal matrix. Factorizes by dgttrf
.
A | The matrix to be factorized. Will be unchanged. | |
AF | The class where the factorization of A will be stored. |
void LaLinearSolve | ( | LaTridiagFactDouble & | AF, | |
LaGenMatDouble & | X, | |||
const LaGenMatDouble & | B | |||
) |
Solve Ax=b with tridiagonal A and the calculated LU factorization of A as returned by LaTridiagMatFactorize(). Solves by dgttrs
.
AF | The LU factorization of the A matrix | |
X | The matrix that will contain the result afterwards. Size must be correct. | |
B | The right-hand-side of the equation system Ax=b. |