MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
unit_roundoff.hpp File Reference
#include <limits>
#include <mtl/math/identity.hpp>

Namespaces

namespace  mtl
namespace  mtl::detail
 mat*vec multiply into pre-allocated y: y = A * x.

Functions

template<typename Real>
requires std::numeric_limits<Real>::is_specialized
Real mtl::detail::machine_epsilon ()
 The machine epsilon of Real: the spacing of Real's values at 1, from std::numeric_limits.
template<typename Real>
Real mtl::detail::unit_roundoff ()
 The unit roundoff u of Real, the bound on the relative error of one rounding: fl(x) = x (1 + d), |d| <= u.