GenericLinearSolver.h

Note

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

class GenericLinearSolver

Parent class(es)

This class provides a general solver for linear systems Ax = b.

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

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_nullspace(const VectorSpaceBasis& nullspace)

Set null space of the operator (matrix). This is used to solve singular systems

std::size_t solve(const GenericLinearOperator& A, GenericVector& x, const GenericVector& b)

Solve linear system Ax = b

std::size_t solve(GenericVector& x, const GenericVector& b)

Solve linear system Ax = b

std::size_t solve_transpose(const GenericLinearOperator& A, GenericVector& x, const GenericVector& b)

Solve linear system A^Tx = b

std::size_t solve_transpose(GenericVector& x, const GenericVector& b)

Solve linear system A^Tx = b

std::string parameter_type() const

Return parameter type: “krylov_solver” or “lu_solver”

void update_parameters(const Parameters& parameters)

Update solver parameters (useful for LinearSolver wrapper)

Previous topic

GenericLinearOperator.h

Next topic

GenericMatrix.h

This Page