24#ifndef _GEMA_PLUGIN_ARMADILLO_SOLVER_H_
25#define _GEMA_PLUGIN_ARMADILLO_SOLVER_H_
44 virtual const char* pluginName()
const {
return "ArmadilloSolver"; }
47 virtual const char* pluginType()
const {
return "ns"; }
49 virtual bool loadPrivateData(
LuaTable& table);
52 int numThreads = -1)
const;
55 virtual bool setSolverTolerance(
double tol) { Q_UNUSED(tol);
return false; }
69 virtual int trackItemId()
const {
return _trackSolveItem; }
82 int _trackSolveItem = -1;
virtual const GmLogCategory & logger() const
QString description() const
Basic class for the standard numeric solver plugin object.
Definition gmpArmadilloSolver.h:38
bool _hasUserOptions
Set to true if _superLuOptions is not the default. Controls whether options should be printed or not.
Definition gmpArmadilloSolver.h:79
bool _useSparseMatrices
Defines weather we should use sparse or full matrices.
Definition gmpArmadilloSolver.h:76
virtual ~GmpArmadilloSolver()
Destructor.
Definition gmpArmadilloSolver.cpp:74
static int _numSolvers
The number of instanced solvers.
Definition gmpArmadilloSolver.h:81
const arma::sp_mat & armaMatrix(GmSolverMatrix *A) const
This should be removed. Used to temporarily help crisms to get hold of a native Armadillo matrix.
Definition gmpArmadilloSolver.cpp:299
GmSparseMatrixOptions _armaMatrixOptions
The set of options used for building the sparse matrix.
Definition gmpArmadilloSolver.h:77
GmpArmadilloSolver(GmSimulationData *simulation, QString id, QString description, const GmLogCategory &logger)
Constructor. Will be called by the plugin loading code.
Definition gmpArmadilloSolver.cpp:46
arma::superlu_opts _superLuOptions
The configured set of SuperLU options.
Definition gmpArmadilloSolver.h:78
QString tr(const char *sourceText, const char *disambiguation, int n)
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const