Not Enough Math
Lightweight zero-dependency C++ math library
Loading...
Searching...
No Matches
nem::accurate Namespace Reference

Functions

template<nem::scalar_type T>
constexpr T abs_error ()
 
template<nem::scalar_type T>
constexpr T rel_error (T x)
 
template<std::floating_point T = float>
constexpr T log2 (T x)
 

Variables

constexpr nem::Precision mode = nem::Precision::Accurate
 

Function Documentation

◆ abs_error()

template<nem::scalar_type T>
T nem::accurate::abs_error ( )
constexpr

Definition at line 127 of file config.hpp.

◆ log2()

template<std::floating_point T = float>
T nem::accurate::log2 ( T x)
constexpr

Definition at line 25 of file power.hpp.

◆ rel_error()

template<nem::scalar_type T>
T nem::accurate::rel_error ( T x)
constexpr

Definition at line 136 of file config.hpp.

Variable Documentation

◆ mode

nem::Precision nem::accurate::mode = nem::Precision::Accurate
inlineconstexpr

Definition at line 124 of file config.hpp.