#include <trfd.h>
Public Member Functions | |
LaTridiagFactDouble () | |
LaTridiagFactDouble (int) | |
LaTridiagFactDouble (LaTridiagFactDouble &) | |
~LaTridiagFactDouble () | |
LaTridiagMatDouble & | T () |
LaVectorLongInt & | pivot () |
int | size () |
LaVectorDouble & | diag (int) |
const LaVectorDouble & | diag (int k) const |
LaTridiagFactDouble & | ref (LaTridiagMatDouble &) |
LaTridiagFactDouble & | ref (LaTridiagFactDouble &) |
LaTridiagFactDouble & | copy (const LaTridiagMatDouble &) |
LaTridiagFactDouble & | copy (const LaTridiagFactDouble &) |
As a code example for solving Ax=b with tridiagonal A, you would program the following lines:
LaTridiagMatDouble A(N); // define A A.diag(0).inject(...); // fill the matrix with values LaGenMatDouble B(N,1); // define right-hand-side B B = ...; // fill B with values from somewhere // To solve Ax=b: LaTridiagFactDouble Afact; LaGenMatDouble X(N,1); LaTridiagMatFactorize(A, Afact); // calculate LU factorization LaLinearSolve(Afact, X, B); // solve; result is in X
LaTridiagFactDouble::LaTridiagFactDouble | ( | ) | [inline] |
LaTridiagFactDouble::LaTridiagFactDouble | ( | int | ) | [inline] |
LaTridiagFactDouble::LaTridiagFactDouble | ( | LaTridiagFactDouble & | ) | [inline] |
LaTridiagFactDouble::~LaTridiagFactDouble | ( | ) | [inline] |
LaTridiagMatDouble& LaTridiagFactDouble::T | ( | ) | [inline] |
LaVectorLongInt& LaTridiagFactDouble::pivot | ( | ) | [inline] |
int LaTridiagFactDouble::size | ( | ) | [inline] |
LaVectorDouble & LaTridiagFactDouble::diag | ( | int | ) | [inline] |
const LaVectorDouble & LaTridiagFactDouble::diag | ( | int | k | ) | const [inline] |
LaTridiagFactDouble & LaTridiagFactDouble::ref | ( | LaTridiagMatDouble & | ) | [inline] |
LaTridiagFactDouble & LaTridiagFactDouble::ref | ( | LaTridiagFactDouble & | ) | [inline] |
LaTridiagFactDouble & LaTridiagFactDouble::copy | ( | const LaTridiagMatDouble & | ) | [inline] |
LaTridiagFactDouble & LaTridiagFactDouble::copy | ( | const LaTridiagFactDouble & | ) | [inline] |