MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
spd_check.hpp File Reference
#include <complex>
#include <cstddef>
#include <limits>
#include <type_traits>
#include <utility>
#include <mtl/concepts/scalar.hpp>
#include <mtl/itl/iteration/basic_iteration.hpp>

Classes

struct  mtl::itl::detail::spd_accumulator_real< A >
struct  mtl::itl::detail::spd_accumulator_real< std::complex< R > >

Namespaces

namespace  mtl
namespace  mtl::itl
namespace  mtl::itl::detail

Functions

template<typename Accumulator, typename Mag>
Mag mtl::itl::detail::dot_rounding_unit ()
 The rounding unit of a dot product delivered in a value of magnitude type Mag and summed in Accumulator (void: in the value type, as dot()'s default).
template<typename Accumulator = void, typename T, typename Norms>
bool mtl::itl::detail::not_positive_definite (const T &d, std::size_t n, Norms &&norms)
 True when d, a computed v^H M^{-1} v (MINRES's ||v||_{M^-1}^2, CG's rho = r^H M^{-1} r), shows that M is not symmetric (Hermitian) positive definite: its real part is negative beyond the rounding of an n-term dot product, n u ||v||_2 ||M^{-1} v||_2, with u the rounding unit of the arithmetic that formed d (dot_rounding_unit).

Variables

constexpr int mtl::itl::detail::not_positive_definite_code = 7
 The error code of a preconditioner that is not positive definite, as basic_iteration::not_positive_definite (7).