float CepsReal
Need single precision floating point.
std::shared_ptr< DistributedMatrix > DMatPtr
Short typedef for pointer on dist matrix.
std::shared_ptr< DistributedVector > DVecPtr
Short typedef for pointer on distributed vector.
CepsReal m_relativeTolerance
Stopping criterion for iterative methods (rel diff between iterations)
void setTolerances(CepsReal rTol, CepsReal aTol, CepsReal dTol, CepsUInt iter)
Sets all stopping criteria of iterative methods at once.
DVecPtr getRhsVector()
Right hand side.
void setupWithParameters(InputParameters *params)
Sets the options from text parameters.
CepsSolver & getSolver()
Underlying solver.
DVecPtr m_rhsVector
Right Hand Side (B)
DMatPtr m_lhsMatrix
Left Hand Side (A)
CepsReal getAbsoluteTolerance() const
Stopping criterion for iterative solvers: absolute norm of residuals.
CepsReal m_divergenceTolerance
Stopping criterion for iterative methods (too large diff between iterations)
CepsReal getRelativeTolerance() const
Stopping criterion for iterative solvers: relative norm of residuals.
CepsUInt m_maxIterations
Maximum of iterations for iterative methods.
CepsReal m_absoluteTolerance
Stopping criterion for iterative methods (abs diff between iterations)
CepsSolver m_solver
Underlying solver.
CepsReal getDivergenceTolerance() const
Stopping criterion for iterative solvers: increase in norm of residuals.
void setType(const CepsString &type)
Set solver type which can be CG, GMRES or LU. (LU for sequential runs only)
DMatPtr getLhsMatrix()
Left hand side.