bempp.api.linalg.direct_solvers
¶
Bempp direct solver interface.
Module Contents¶
Functions¶
Precompute the LU factors of a dense operator A. |
|
|
Perform an LU solve. |
- bempp.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.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.api.BoundaryOperator
The left-hand side boundary operator
- bbempp.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