Cyclone Cyclone: C:/data/physeng_code/include/cyclone/precision.h File Reference

C:/data/physeng_code/include/cyclone/precision.h File Reference

Because Cyclone is designed to work at either single or double precision, mathematical functions such as sqrt cannot be used in the source code or headers. More...

#include <float.h>

Include dependency graph for precision.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  cyclone

Defines

#define DOUBLE_PRECISION
 >DoublePrecision
#define REAL_MAX   DBL_MAX
#define real_sqrt   sqrt
#define real_abs   fabs
#define real_sin   sin
#define real_cos   cos
#define real_exp   exp
#define real_pow   pow
#define real_fmod   fmod
#define R_PI   3.14159265358979
 DoublePrecision.

Typedefs

typedef double cyclone::real


Detailed Description

Because Cyclone is designed to work at either single or double precision, mathematical functions such as sqrt cannot be used in the source code or headers.

This file provides defines for the real number type and mathematical formulae that work on it.

Note:
All the contents of this file need to be changed to compile Cyclone at a different precision.

Define Documentation

#define DOUBLE_PRECISION
 

>DoublePrecision

#define R_PI   3.14159265358979
 

DoublePrecision.

#define real_abs   fabs
 

#define real_cos   cos
 

#define real_exp   exp
 

#define real_fmod   fmod
 

#define REAL_MAX   DBL_MAX
 

#define real_pow   pow
 

#define real_sin   sin
 

#define real_sqrt   sqrt