1 #ifndef TSOLVER_LAPACK_LU_HXX 7 #define TSOLVER_LAPACK_LU_HXX 20 const std::shared_ptr< TMatrix<T> >
pMatrix;
21 const std::shared_ptr< TMatrix<T> >
pLU;
22 const std::shared_ptr< TArray1<int>>
pIPiv;
33 static std::shared_ptr<TSolverLapackLU<T>>
create(
const std::shared_ptr<
TMatrix<T>> pMatrix);
69 inline std::ostream & operator << (std::ostream & s, TSolverLapackLU<T> &
LU)
71 s <<
"LU:" << std::endl;
72 s <<
LU.LU() << std::endl;
73 s <<
"IPiv:" << std::endl;
74 s <<
LU.IPiv() << std::endl;
const std::shared_ptr< TMatrix< T > > pMatrix
std::shared_ptr< TMatrix< T > > calculate_inverse()
Calculate inverse of matrix A from its LU factors.
Header for numcxx::TMatrix.
static std::shared_ptr< TSolverLapackLU< T > > create(const std::shared_ptr< TMatrix< T >> pMatrix)
Static wrapper around constructor.
void solve(TArray< T > &Sol, const TArray< T > &Rhs) const
Solve LU factorized system.
TArray is the common template base class for arrays and dense matrices of the numcxx project...
Inline methods for numcxx::TSolverLapackLU.
void update()
Perform computation of LU factorization using actual state of matrix.
Base class for linear solvers and preconditioners.
TSolverLapackLU()
Default constructor for swig.
One dimensional array class.
Lapack LU factorization class.
const std::shared_ptr< TArray1< int > > pIPiv
const std::shared_ptr< TMatrix< T > > pLU
void solve(std::shared_ptr< TArray1< T >> Sol, const std::shared_ptr< TArray1< T >> Rhs) const
Solve LU factorized system.