KrylovSolver.h¶
Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
-
class
KrylovSolver
¶ Parent class(es)
This class defines an interface for a Krylov solver. The appropriate solver is chosen on the basis of the matrix/vector type.
-
KrylovSolver
(std::string method = "default", std::string preconditioner = "default")¶ Constructor
Constructor
Set operator (matrix)
Set operator (matrix) and preconditioner matrix
-
void
set_nullspace
(const VectorSpaceBasis &nullspace)¶ Set null space of the operator (matrix). This is used to solve singular systems
-
std::size_t
solve
(GenericVector &x, const GenericVector &b)¶ Solve linear system Ax = b
-
std::size_t
solve
(const GenericLinearOperator &A, GenericVector &x, const GenericVector &b)¶ Solve linear system Ax = b
-
static Parameters
default_parameters
()¶ Default parameter values
-
void
update_parameters
(const Parameters ¶meters)¶ Update solver parameters (pass parameters down to wrapped implementation)
-
std::string
parameter_type
() const¶ Return parameter type: “krylov_solver” or “lu_solver”
-