EigenKrylovSolver.h

Note

The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.

class EigenKrylovSolver

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 Eigen.

EigenKrylovSolver(std::string method="default", std::string preconditioner="default")

Create Krylov solver for a particular method and names preconditioner

void set_operator(std::shared_ptr<const GenericLinearOperator> A)

Set operator (matrix)

void set_operator(std::shared_ptr<const EigenMatrix> A)

Set operator (matrix)

void set_operators(std::shared_ptr<const GenericLinearOperator> A, std::shared_ptr<const GenericLinearOperator> P)

Set operator (matrix) and preconditioner matrix

void set_operators(std::shared_ptr<const EigenMatrix> A, std::shared_ptr<const EigenMatrix> P)

Set operator (matrix) and preconditioner matrix

const EigenMatrix& get_operator() const

Get 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(EigenVector& x, const EigenVector& 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 EigenMatrix& A, EigenVector& x, const EigenVector& b)

Solve linear system Ax = b and return number of iterations

std::string str(bool verbose) const

Return informal string representation (pretty-print)

static std::map<std::string, std::string> methods()

Return a list of available solver methods

static std::map<std::string, std::string> preconditioners()

Return a list of available preconditioners

static Parameters default_parameters()

Default parameter values

Previous topic

EigenFactory.h

Next topic

EigenLUSolver.h

This Page