bempp_cl.api.linalg.direct_solvers ================================== .. py:module:: bempp_cl.api.linalg.direct_solvers .. autoapi-nested-parse:: Bempp direct solver interface. Functions --------- .. autoapisummary:: bempp_cl.api.linalg.direct_solvers.compute_lu_factors bempp_cl.api.linalg.direct_solvers.lu Module Contents --------------- .. 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_cl.api.BoundaryOperator The left-hand side boundary operator b : bempp_cl.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