LinearPDE#
- class cuqi.pde.LinearPDE(PDE_form, linalg_solve=None, linalg_solve_kwargs=None, **kwargs)#
Parametrized Linear PDE base class
- Parameters:
PDE_form (callable function) – Callable function which returns a tuple of the needed PDE components (expected components are explained in the subclasses)
linalg_solve (lambda function or function handle) – linear system solver function to solve the arising linear system with the signature
x, val1, val2, ...=linalg_solve(A,b,**linalg_solve_kwargs)()
where A is the linear operator and b is the right hand side. linalg_solve_kwargs is any keywords arguments that the functionlinalg_solve()
can take. x is the solution of A*x=b of type numpy.ndarray. val1, val2, etc. are optional and can be a one or more values the solver return, e.g. information and number of iterations (for iterative solvers). If linalg_solve is None,scipy.linalg.solve()
will be used.linalg_solve_kwargs (a dictionary) – A dictionary of the keywords arguments that linalg_solve can take.
kwargs – See
PDE
for the remaining keyword arguments.
- __init__(PDE_form, linalg_solve=None, linalg_solve_kwargs=None, **kwargs)#
Methods
Attributes