gko::solver::Bicgstab#
Stabilised biconjugate gradient. Smooths Bicg’s erratic convergence by
combining each step with a GMRES(1)-style local minimisation. Avoids
the need to apply Aᵀ (two matvecs with A plus two preconditioner
applies per iteration), making it a common choice for
non-symmetric problems when the memory of GMRES is a concern.
-
template<typename ValueType = default_precision>
class Bicgstab # Inherits from
public gko::EnableLinOp<Bicgstab<default_precision>>
public gko::solver::EnablePreconditionedIterativeSolver<default_precision, Bicgstab<default_precision>>
public gko::Transposable
BiCGSTAB or the Bi-Conjugate Gradient-Stabilized is a Krylov subspace solver.
Being a generic solver, it is capable of solving general matrices, including non-s.p.d matrices. Though, the memory and the computational requirement of the BiCGSTAB solver are higher than of its s.p.d solver counterpart, it has the capability to solve generic systems. It was developed by stabilizing the BiCG method.
- Template Parameters:
ValueType – precision of the elements of the system matrix.
Public Functions
-
virtual std::unique_ptr<LinOp> transpose() const override#
Returns a LinOp representing the transpose of the Transposable object.
- Returns:
a pointer to the new transposed object
-
virtual std::unique_ptr<LinOp> conj_transpose() const override#
Returns a LinOp representing the conjugate transpose of the Transposable object.
- Returns:
a pointer to the new conjugate transposed object
-
inline bool apply_uses_initial_guess() const override#
Return true as iterative solvers use the data in x as an initial guess.
- Returns:
true as iterative solvers use the data in x as an initial guess.
Public Static Functions
- static parameters_type parse(
- const config::pnode &config,
- const config::registry &context,
- const config::type_descriptor &td_for_child = config::make_type_descriptor<ValueType>(),
Create the parameters from the property_tree. Because this is directly tied to the specific type, the value/index type settings within config are ignored and type_descriptor is only used for children configs.
- Parameters:
config – the property tree for setting
context – the registry
td_for_child – the type descriptor for children configs. The default uses the value type of this class.
- Returns:
parameters
-
struct parameters_type #
Inherits from
public gko::solver::enable_preconditioned_iterative_solver_factory_parameters<parameters_type, Factory>