MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
zero_diagonal.hpp File Reference
#include <cstddef>
#include <stdexcept>
#include <string>
#include <mtl/detail/exceptions.hpp>

Namespaces

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

Functions

void mtl::itl::detail::throw_zero_diagonal (const char *who, std::size_t row)
 Through throw_or_abort, so a build with exceptions disabled still compiles and aborts instead (#870 review).
void mtl::itl::detail::throw_nonpositive_pivot (const char *who, std::size_t row)
 A pivot that is not positive where the factorization needs it to be: IC(0) takes the square root of each pivot, so a zero or negative one (A not positive definite, or IC(0) breaking down on it) gave NaN in solve() (issue 925).
template<typename Matrix>
void mtl::itl::detail::require_square (const Matrix &A, const char *who)
 A matrix that must be square, checked once at construction in every build (issue 925; the index-check policy of #825).