Geophysical Inversion and Modelling Library v1.5.4
Loading...
Searching...
No Matches
GIMLI::CHOLMODWrapper Class Reference
+ Inheritance diagram for GIMLI::CHOLMODWrapper:
+ Collaboration diagram for GIMLI::CHOLMODWrapper:

Public Member Functions

 CHOLMODWrapper (RSparseMatrix &S, bool verbose=false, int stype=-2, bool forceUmfpack=false)
 
 CHOLMODWrapper (CSparseMatrix &S, bool verbose=false, int stype=-2, bool forceUmfpack=false)
 
virtual void setMatrix (RSparseMatrix &S)
 
virtual void setMatrix (CSparseMatrix &S)
 
virtual void solve (const RVector &rhs, RVector &solution)
 
virtual void solve (const CVector &rhs, CVector &solution)
 
- Public Member Functions inherited from GIMLI::SolverWrapper
 SolverWrapper (bool verbose=false)
 
virtual void setMatrix (const RSparseMatrix &S)
 
virtual void setMatrix (const CSparseMatrix &S)
 
std::string name () const
 

Static Public Member Functions

static bool valid ()
 

Protected Member Functions

void init ()
 
void free ()
 
int initializeMatrix_ (RSparseMatrix &S)
 
int initializeMatrix_ (CSparseMatrix &S)
 
template<class ValueType>
void init_ (SparseMatrix< ValueType > &S, int stype)
 
template<class ValueType>
int initMatrixChol_ (SparseMatrix< ValueType > &S, int xType)
 
template<class ValueType>
void solveCHOL_ (const Vector< ValueType > &rhs, Vector< ValueType > &solution)
 
template<class ValueType>
void solveUmf_ (const Vector< ValueType > &rhs, Vector< ValueType > &solution)
 
int factorise_ ()
 

Protected Attributes

int stype_
 
void * c_
 
void * A_
 
void * L_
 
bool useUmfpack_
 
bool forceUmfpack_
 
void * Numeric_
 
void * NumericD_
 
int * Ap_
 
int * Ai_
 
int * ApR_
 
int * AiR_
 
RVectorAxV_
 
RVectorAzV_
 
- Protected Attributes inherited from GIMLI::SolverWrapper
std::string name_
 
bool dummy_
 
bool verbose_
 
bool isComplex_
 
uint dim_
 
long nVals_
 
double dropTol_
 
double tolerance_
 
double maxiter_
 

Member Function Documentation

◆ solve() [1/2]

void GIMLI::CHOLMODWrapper::solve ( const CVector & rhs,
CVector & solution )
virtual

Reimplemented from GIMLI::SolverWrapper.

◆ solve() [2/2]

void GIMLI::CHOLMODWrapper::solve ( const RVector & rhs,
RVector & solution )
virtual

Implements GIMLI::SolverWrapper.