EigenKrylovSolver¶
-
class
dolfin.cpp.la.
EigenKrylovSolver
(*args)¶ Bases:
dolfin.cpp.la.GenericLinearSolver
This class implements Krylov methods for linear systems of the form Ax = b. It is a wrapper for the Krylov solvers of Eigen.
Create Krylov solver for a particular method and names preconditioner
Parameters: - method (std::string) –
- preconditioner (std::string) –
-
static
default_parameters
()¶
-
get_operator
()¶ Get operator (matrix)
Return type: std::shared_ptr< const EigenMatrix >
-
static
methods
()¶ Return a list of available solver methods.
Return type: std::map< std::string, std::string >
-
static
preconditioners
()¶ Return a list of available preconditioners.
Return type: std::map< std::string, std::string >
-
set_operator
()¶ Set
operator (matrix)Parameters: const GenericLinearOperator > A (std::shared_ptr<) – Return type: void
-
set_operators
()¶ Set
operator (matrix) and preconditioner matrix.Parameters: - const GenericLinearOperator > A (std::shared_ptr<) –
- const GenericLinearOperator > P (std::shared_ptr<) –
Return type: void
-
solve
()¶ Solve linear system Ax = b and return number of iterations.
Parameters: - GenericLinearOperator & A (const) –
- & x (GenericVector) –
- GenericVector & b (const) –
Return type: std::size_t
-
thisown
¶ The membership flag