MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::itl::pc::ilut< Value, Parameters, Accumulator > Class Template Reference

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.

Detailed Description

template<Field Value, typename Parameters = mat::parameters<>, typename Accumulator = void>
class mtl::itl::pc::ilut< Value, Parameters, Accumulator >

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.

Constructor & Destructor Documentation

◆ ilut()

template<Field Value, typename Parameters = mat::parameters<>, typename Accumulator = void>
mtl::itl::pc::ilut< Value, Parameters, Accumulator >::ilut ( const matrix_type & A,
size_type fill = 10,
magnitude_type threshold = magnitude_type(1e-4) )
inlineexplicit

Member Function Documentation

◆ adjoint_solve()

template<Field Value, typename Parameters = mat::parameters<>, typename Accumulator = void>
template<typename VecX, typename VecB>
void mtl::itl::pc::ilut< Value, Parameters, Accumulator >::adjoint_solve ( VecX & x,
const VecB & b ) const
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.

◆ solve()

template<Field Value, typename Parameters = mat::parameters<>, typename Accumulator = void>
template<typename VecX, typename VecB>
void mtl::itl::pc::ilut< Value, Parameters, Accumulator >::solve ( VecX & x,
const VecB & b ) const
inline

The documentation for this class was generated from the following file:
  • /home/runner/work/mtl5/mtl5/include/mtl/itl/pc/ilut.hpp