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::identity< Matrix > Class Template Reference

Identity preconditioner – solve(x, b) simply copies b into x. More...

#include <identity.hpp>

Public Member Functions

 identity (const Matrix &)
template<typename VectorOut, typename VectorIn>
void solve (VectorOut &x, const VectorIn &b) const
 solve: x = b (identity preconditioning)
template<typename VectorOut, typename VectorIn>
void adjoint_solve (VectorOut &x, const VectorIn &b) const
 adjoint_solve: same as solve (self-adjoint)

Detailed Description

template<FieldMatrix Matrix>
class mtl::itl::pc::identity< Matrix >

Identity preconditioner – solve(x, b) simply copies b into x.

Satisfies the Preconditioner concept. Stores nothing.

Constructor & Destructor Documentation

◆ identity()

template<FieldMatrix Matrix>
mtl::itl::pc::identity< Matrix >::identity ( const Matrix & )
inlineexplicit

Member Function Documentation

◆ adjoint_solve()

template<FieldMatrix Matrix>
template<typename VectorOut, typename VectorIn>
void mtl::itl::pc::identity< Matrix >::adjoint_solve ( VectorOut & x,
const VectorIn & b ) const
inline

adjoint_solve: same as solve (self-adjoint)

◆ solve()

template<FieldMatrix Matrix>
template<typename VectorOut, typename VectorIn>
void mtl::itl::pc::identity< Matrix >::solve ( VectorOut & x,
const VectorIn & b ) const
inline

solve: x = b (identity preconditioning)


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