rounding.h File Reference

Rigorous rounding of arithmetic operations. More...

#include "boost/numeric/interval.hpp"

Go to the source code of this file.

Classes

class  tRounding< NumType >
 A class for rounding operations which uses the BOOST library. More...

Defines

#define DEFOP(WHAT)
 This is an internal macro of the class template "tRounding" which defines arithmetic operations using the operations available in the BOOST library.


Detailed Description

Rigorous rounding of arithmetic operations.

This file contains the definition of a class for doing arithmetic operations with controlled rounding directions (upwards/downwards). This class uses the BOOST library.

Author:
Pawel Pilarczyk

Definition in file rounding.h.


Define Documentation

#define DEFOP ( WHAT   ) 

Value:

static inline NumType WHAT (const NumType &x, const NumType &y) \
        { \
                NumType result = Rounding. WHAT (x, y); \
                Rounding. to_nearest (); \
                return result; \
        }
This is an internal macro of the class template "tRounding" which defines arithmetic operations using the operations available in the BOOST library.

Definition at line 54 of file rounding.h.


Generated on Mon Apr 12 15:09:57 2010 for The Finite Resolution Dynamics Software by  doxygen 1.5.3