CAPD::DynSys Library  6.0.0
capd::TypeTraits< float > Struct Reference

Traits of type float. More...

#include <capd/basicalg/TypeTraits.h>

Public Types

typedef float Real
 

Static Public Member Functions

static float zero ()
 returns object set to zero More...
 
static float one ()
 returns object set to one More...
 
static int numberOfDigits () throw ()
 number of decimal digits More...
 
static float epsilon () throw ()
 Machine epsilon (the difference between 1 and the least value greater than 1 that is representable). More...
 
static constexpr bool isInf (float a) noexcept
 
static constexpr bool isNaN (float a) noexcept
 
template<typename S >
static T convert (const S &obj)
 
static constexpr T max (T a, T b) noexcept
 
static constexpr T min (T a, T b) noexcept
 
static constexpr T abs (T a) noexcept
 
static bool isSingular (T a)
 

Static Public Attributes

static const bool isInterval = false
 this flag is true for all interval types More...
 

Detailed Description

Traits of type float.

Member Typedef Documentation

◆ Real

typedef float capd::FloatingTypeTraits< float >::Real
inherited

Member Function Documentation

◆ abs()

template<typename T >
static constexpr T capd::IntegralTypeTraits< T >::abs ( a)
inlinestaticconstexprnoexceptinherited

◆ convert()

template<typename T >
template<typename S >
static T capd::IntegralTypeTraits< T >::convert ( const S &  obj)
inlinestaticinherited

◆ epsilon()

static float capd::FloatingTypeTraits< float >::epsilon ( )
throw (
)
inlinestaticinherited

Machine epsilon (the difference between 1 and the least value greater than 1 that is representable).

◆ isInf()

static constexpr bool capd::FloatingTypeTraits< float >::isInf ( float  a)
inlinestaticconstexprnoexceptinherited

◆ isNaN()

static constexpr bool capd::FloatingTypeTraits< float >::isNaN ( float  a)
inlinestaticconstexprnoexceptinherited

◆ isSingular()

template<typename T >
static bool capd::IntegralTypeTraits< T >::isSingular ( a)
inlinestaticinherited

◆ max()

template<typename T >
static constexpr T capd::IntegralTypeTraits< T >::max ( a,
b 
)
inlinestaticconstexprnoexceptinherited

◆ min()

template<typename T >
static constexpr T capd::IntegralTypeTraits< T >::min ( a,
b 
)
inlinestaticconstexprnoexceptinherited

◆ numberOfDigits()

static int capd::FloatingTypeTraits< float >::numberOfDigits ( )
throw (
)
inlinestaticinherited

number of decimal digits

◆ one()

static float capd::FloatingTypeTraits< float >::one ( )
inlinestaticinherited

returns object set to one

◆ zero()

static float capd::FloatingTypeTraits< float >::zero ( )
inlinestaticinherited

returns object set to zero

Member Data Documentation

◆ isInterval

template<typename T >
const bool capd::IntegralTypeTraits< T >::isInterval = false
staticinherited

this flag is true for all interval types


The documentation for this struct was generated from the following file: