bempp_cl.api.linalg.direct_solvers¶
Bempp direct solver interface.
Functions¶
Precompute the LU factors of a dense operator A. |
|
|
Perform an LU solve. |
Module Contents¶
- bempp_cl.api.linalg.direct_solvers.compute_lu_factors(A)¶
Precompute the LU factors of a dense operator A.
This function returns a tuple of LU factors of A. This tuple can be used in the lu_factor attribute of the lu function so that the LU decomposition is not recomputed at each call to lu.
- bempp_cl.api.linalg.direct_solvers.lu(A, b, lu_factor=None)¶
Perform an LU solve.
This function takes an operator and a grid function, converts the operator into a dense matrix and solves the system via LU decomposition. The result is again returned as a grid function.
Parameters¶
- Abempp_cl.api.BoundaryOperator
The left-hand side boundary operator
- bbempp_cl.api.GridFunction
The right-hand side grid function
- lu_decomptuple
Optionally pass the tuple (lu, piv) obtained by the scipy method scipy.linalg.lu_factor