The Finite Resolution Dynamics Software
Public Member Functions | Static Public Member Functions | Static Private Attributes | List of all members
tRounding< NumType > Class Template Reference

A class for rounding operations which uses the BOOST library. More...

#include <rounding.h>

Public Member Functions

template<>
float min_number ()
 
template<>
double min_number ()
 
template<>
long double min_number ()
 

Static Public Member Functions

static NumType min_number ()
 The smallest positive representable number. More...
 

Static Private Attributes

static boost::numeric::interval_lib::rounded_arith_std< NumType > Rounding
 This is an object from the BOOST library which contains the definitions of arithmetic operations with correct rounding. More...
 

Detailed Description

template<class NumType>
class tRounding< NumType >

A class for rounding operations which uses the BOOST library.

Definition at line 48 of file rounding.h.

Member Function Documentation

◆ min_number() [1/4]

template<class NumType >
static NumType tRounding< NumType >::min_number ( )
static

The smallest positive representable number.

This function returns the smallest possible positive number, which typically equals the machine precision and may be implementation-dependent for different number types.

Referenced by tCoverBoxes< NumType >::tCoverBoxes().

◆ min_number() [2/4]

template<>
float tRounding< float >::min_number ( )
inline

Definition at line 97 of file rounding.h.

◆ min_number() [3/4]

template<>
double tRounding< double >::min_number ( )
inline

Definition at line 103 of file rounding.h.

◆ min_number() [4/4]

template<>
long double tRounding< long double >::min_number ( )
inline

Definition at line 109 of file rounding.h.

Member Data Documentation

◆ Rounding

template<class NumType >
boost::numeric::interval_lib::rounded_arith_std< NumType > tRounding< NumType >::Rounding
staticprivate

This is an object from the BOOST library which contains the definitions of arithmetic operations with correct rounding.

Definition at line 91 of file rounding.h.


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