MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
apply_operator.hpp File Reference
#include <cstddef>
#include <type_traits>
#include <mtl/concepts/linear_operator.hpp>
#include <mtl/concepts/matrix.hpp>
#include <mtl/concepts/scalar.hpp>
#include <mtl/functor/scalar/conj.hpp>
#include <mtl/operation/mult.hpp>
#include <mtl/operation/trans.hpp>

Namespaces

namespace  mtl
namespace  mtl::itl

Functions

template<typename Accumulator = void, typename LinearOp, typename VecIn, typename VecOut>
void mtl::itl::apply_operator (const LinearOp &A, const VecIn &x, VecOut &y)
 y = A * x, for the ITL Krylov solvers.
template<typename Accumulator = void, typename LinearOp, typename VecIn, typename VecOut>
void mtl::itl::apply_transpose (const LinearOp &A, const VecIn &x, VecOut &y)
 y = A^T * x, for the solvers that need the transpose (bicg, qmr).
template<typename Accumulator = void, typename LinearOp, typename VecIn, typename VecOut, typename VecTmp>
void mtl::itl::apply_adjoint (const LinearOp &A, const VecIn &x, VecOut &y, VecTmp &tmp)
 y = A^H * x, the adjoint, for the shadow recurrences of bicg and qmr.