Not Enough Math
Lightweight zero-dependency C++ math library
Loading...
Searching...
No Matches
config.hpp File Reference
#include <type_traits>
#include <concepts>
#include <cassert>

Go to the source code of this file.

Classes

struct  nem::safe_t
 
struct  nem::unsafe_t
 
struct  nem::is_subset_of< From, To >
 

Namespaces

namespace  nem
 
namespace  nem::fast
 
namespace  nem::accurate
 

Concepts

concept  nem::scalar_type
 

Macros

#define NEM_INLINE   inline
 

Typedefs

using nem::nem_string = const char*
 
using nem::real = float
 

Enumerations

enum class  nem::Precision : unsigned char { nem::Fast = 0 , nem::Accurate = 1 }
 

Functions

const char * nem::GET_C_STRING (nem_string str)
 
template<nem::scalar_type T>
constexpr T nem::abs_to_rel_error (T x, T abs_error)
 
template<nem::scalar_type T>
constexpr T nem::eps ()
 
template<nem::scalar_type T>
constexpr T nem::fast::abs_error ()
 
template<nem::scalar_type T>
constexpr T nem::fast::rel_error (T x)
 
template<nem::scalar_type T>
constexpr T nem::accurate::abs_error ()
 
template<nem::scalar_type T>
constexpr T nem::accurate::rel_error (T x)
 
template<nem::scalar_type T, nem::Precision Prec = nem::default_precision>
constexpr T nem::abs_error ()
 
template<nem::scalar_type T, nem::Precision Prec = nem::default_precision>
constexpr T nem::rel_error (T x)
 

Variables

constexpr bool nem::ERR_THROW = true
 
constexpr bool nem::ERR_LOG = true
 
constexpr bool nem::ERR_USE_NAN = true
 
constexpr bool nem::ERR_SAFE_FALLBACK = false
 
constexpr bool nem::USE_C_STRING = true
 
constexpr safe_t nem::safe {}
 
constexpr unsafe_t nem::unsafe {}
 
constexpr nem::Precision nem::default_precision = nem::Precision::Fast
 
constexpr nem::Precision nem::fast::mode = nem::default_precision
 
constexpr nem::Precision nem::accurate::mode = nem::Precision::Accurate
 
template<class From , class To >
constexpr bool nem::is_subset_of_v = is_subset_of<From, To>::value
 

Macro Definition Documentation

◆ NEM_INLINE

#define NEM_INLINE   inline

Definition at line 12 of file config.hpp.