Not Enough Math
Lightweight zero-dependency C++ math library
Loading...
Searching...
No Matches
nem::fast 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::default_precision
 

Function Documentation

◆ abs_error()

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

Definition at line 104 of file config.hpp.

◆ log2()

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

Definition at line 13 of file power.hpp.

◆ rel_error()

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

Definition at line 113 of file config.hpp.

Variable Documentation

◆ mode

nem::Precision nem::fast::mode = nem::default_precision
inlineconstexpr

Definition at line 101 of file config.hpp.