12#include "tbci/band_matrix.h"
14# pragma implementation "bd_lu_solver.h"
16#include "tbci/solver/bd_lu_solver.h"
18# pragma implementation "svd_solver.h"
20#include "tbci/solver/svd_solver.h"
25#include "bd_lu_solver_inst.h"
27#define MAT TBCI__ BdMatrix<NUM >
28#define VEC TBCI__ Vector<NUM >
29#include "svd_solver_inst.h"
32#define TEMPLATE template
TVector< T > LU_bkw_subst(const BdMatrix< T > &lu, const Vector< T > &y)
T lu_det(BdMatrix< T > &mat)
calculates the determinant of a BdMatrix by doing an LU decomposition
TVector< T > LU_solve(const BdMatrix< T > &lu, const Vector< T > &b)
Solve the equation Ax = b where A IS already LU decomposed.
T LU_det(const BdMatrix< T > &lu)
calculates determinant of an already LU decomposed BdMatrix
TMatrix< T > LU_invert(const BdMatrix< T > &lu)
return the inverse Matrix for an already LU decomposed BdMatrix
TVector< T > LU_fwd_subst(const BdMatrix< T > &lu, const Vector< T > &y)
TMatrix< T > lu_invert(BdMatrix< T > &mat)
return the inverse Matrix for a BdMatrix by doing an LU decomposition
The class BdMatrix is an implementation to store and do operations on sparse Matrices with a band str...
Temporary Base Class Idiom: Class TVector is used for temporary variables.
F_TMatrix< double > lu_solve(const F_Matrix< double > &A, const F_Matrix< double > &B, int overwriteA=0)
int lu_decomp(Matrix< T > &) HOT
LU decomposes the TBCI::Matrix mat.