:py:mod:`bempp.api.linalg.direct_solvers` ========================================= .. py:module:: bempp.api.linalg.direct_solvers .. autoapi-nested-parse:: Bempp direct solver interface. Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: bempp.api.linalg.direct_solvers.compute_lu_factors bempp.api.linalg.direct_solvers.lu .. py:function:: 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. .. py:function:: 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 ---------- A : bempp.api.BoundaryOperator The left-hand side boundary operator b : bempp.api.GridFunction The right-hand side grid function lu_decomp : tuple Optionally pass the tuple (lu, piv) obtained by the scipy method scipy.linalg.lu_factor