dolfin.la

Functions

la_index_dtype()

Return the numpy dtype equivalent to the type of la_index

dolfin.la.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.