24#ifndef _GEMA_SPQR_SOLVER_H_
25#define _GEMA_SPQR_SOLVER_H_
38 virtual const char* pluginType()
const {
return "spqr"; }
40 virtual bool loadPrivateData(
LuaTable& table);
54 QString errorStr()
const {
return CholmodSolver::errorStr(
_context.status); }
Declaration of the CholmodSolver class.
virtual const GmLogCategory & logger() const
QString description() const
A class for creating a GeMA solver based on the SPQR solver from the SuiteSparse library.
Definition spqrSolver.h:31
double _tol
The tolerance.
Definition spqrSolver.h:60
static int _numSolvers
The number of instanced solvers.
Definition spqrSolver.h:62
QString _orderStr
The requested ordering option.
Definition spqrSolver.h:59
SpqrSolver(GmSimulationData *simulation, QString id, QString description, const GmLogCategory &logger)
Constructor. Will be called by the plugin loading code.
Definition spqrSolver.cpp:49
cholmod_common _context
The Cholmod library context.
Definition spqrSolver.h:56
bool _gpu
Are we using the GPU?
Definition spqrSolver.h:57
bool intSolve(GmSolverMatrix *A, const GmVector &b, GmVector &x) const
Worker function for solve() parameterized on the int type (64 or 32 bits)
Definition spqrSolver.cpp:176
int _ordering
The requested ordering option.
Definition spqrSolver.h:58
virtual ~SpqrSolver()
Destructor.
Definition spqrSolver.cpp:72
A base class with the common behavior for creating a GeMA solver based on one of the following SuiteS...
Definition suiteSparseSolver.h:44
bool _i64
Are we using 64 bit indices for sparse matrices?
Definition suiteSparseSolver.h:80