27class DLLEXPORT CHOLMODWrapper :
public SolverWrapper {
29 CHOLMODWrapper(RSparseMatrix & S,
bool verbose=
false,
int stype=-2,
bool forceUmfpack=
false);
30 CHOLMODWrapper(CSparseMatrix & S,
bool verbose=
false,
int stype=-2,
bool forceUmfpack=
false);
32 virtual ~CHOLMODWrapper();
36 virtual void setMatrix(RSparseMatrix & S);
38 virtual void setMatrix(CSparseMatrix & S);
40 virtual void solve(
const RVector & rhs, RVector & solution);
42 virtual void solve(
const CVector & rhs, CVector & solution);
49 int initializeMatrix_(RSparseMatrix & S);
51 int initializeMatrix_(CSparseMatrix & S);
53 template <
class ValueType >
54 void init_(SparseMatrix < ValueType > & S,
int stype);
56 template <
class ValueType >
57 int initMatrixChol_(SparseMatrix < ValueType > & S,
int xType);
59 template <
class ValueType >
60 void solveCHOL_(
const Vector < ValueType > & rhs, Vector < ValueType > & solution);
62 template <
class ValueType >
63 void solveUmf_(
const Vector < ValueType > & rhs, Vector < ValueType > & solution);