EpetraKrylovSolver.h¶
Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
-
class
EpetraKrylovSolver
¶ Parent class(es)
This class implements Krylov methods for linear systems of the form Ax = b. It is a wrapper for the Krylov solvers of Epetra.
-
EpetraKrylovSolver
(std::string method = "default", std::string preconditioner = "default")¶ Create Krylov solver for a particular method and preconditioner
-
EpetraKrylovSolver
(std::string method, TrilinosPreconditioner &preconditioner)¶ Create Krylov solver for a particular method and TrilinosPreconditioner
Set the operator (matrix)
Set the operator (matrix)
-
const GenericLinearOperator &
get_operator
() const¶ Get the operator (matrix)
-
std::size_t
solve
(GenericVector &x, const GenericVector &b)¶ Solve linear system Ax = b and return number of iterations
-
std::size_t
solve
(EpetraVector &x, const EpetraVector &b)¶ Solve linear system Ax = b and return number of iterations
-
std::size_t
solve
(const GenericLinearOperator &A, GenericVector &x, const GenericVector &b)¶ Solve linear system Ax = b and return number of iterations
-
std::size_t
solve
(const EpetraMatrix &A, EpetraVector &x, const EpetraVector &b)¶ Solve linear system Ax = b and return number of iterations
-
double
residual
(const std::string residualtype) const¶ Return residual from most recent solve
-
static std::vector<std::pair<std::string, std::string>>
methods
()¶ Return a list of available solver methods
-
static std::vector<std::pair<std::string, std::string>>
preconditioners
()¶ Return a list of available preconditioners
-
static Parameters
default_parameters
()¶ Default parameter values
-
std::string
str
(bool verbose) const¶ Return informal string representation (pretty-print)
-
boost::shared_ptr<AztecOO>
aztecoo
() const¶ Return pointer to Aztec00
-