dolfin.la.solver¶
Simpler interface for solving linear systems
Functions
|
Solve linear system Ax = b. |
-
dolfin.la.solver.
solve
(A, x, b)[source]¶ Solve linear system Ax = b.
A linear system Ax = b may be solved by calling solve(A, x, b), where A is a matrix and x and b are vectors. Optional arguments may be passed to specify the solver method and preconditioner. Some examples are given below:
solve(A, x, b) solve(A, x, b, "lu") solve(A, x, b, "gmres", "ilu")
Possible values for the solver method and preconditioner depend on which linear algebra backend is used and how that has been configured.