|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
ILUT preconditioner for compressed2D sparse matrices. More...
#include <ilut.hpp>
Public Member Functions | |
| ilut (const matrix_type &A, size_type fill=10, magnitude_type threshold=magnitude_type(1e-4)) | |
| template<typename VecX, typename VecB> | |
| void | solve (VecX &x, const VecB &b) const |
| template<typename VecX, typename VecB> | |
| void | adjoint_solve (VecX &x, const VecB &b) const |
| Solve (L*U)^H * x = b, i.e. | |
ILUT preconditioner for compressed2D sparse matrices.
fill: max extra entries per row in L and U. threshold: drop tolerance relative to row 2-norm.
Accumulator selects how the elimination and the triangular solves accumulate (see math/accumulator_traits.hpp and the header note). The default void keeps the naive value_type arithmetic unchanged.
|
inlineexplicit |
|
inline |
Solve (L*U)^H * x = b, i.e.
x = U^-H (L^-H b).
This used to delegate to solve(), which applies M^-1 rather than M^-H and is wrong for every non-symmetric A – the #394 defect, which ilu_0 had fixed and this class still carried. The triangular solves are in scatter form exactly as in ilu_0::adjoint_solve: L and U are stored by row, the adjoint needs them by column, and scattering each finished component reads the row storage as it is laid out.
|
inline |