GenericLinearSolver

class dolfin.cpp.la.GenericLinearSolver(*args, **kwargs)

Bases: dolfin.cpp.common.Variable

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

parameter_type()

Return parameter type: “krylov_solver” or “lu_solver”.

Return type: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.

Parameters:
  • GenericLinearOperator & A (const) –
  • & x (GenericVector) –
  • GenericVector & b (const) –
Return type:

std::size_t

thisown

The membership flag

update_parameters()

Update solver parameters (useful for LinearSolver wrapper)

Parameters:Parameters & parameters (const) –
Return type:void