Defines | Functions

math_utilities.h File Reference

Implements some math functions needed in various parts of the code. More...

#include <limits>

Go to the source code of this file.

Defines

#define M_PI   3.14159265

Functions

template<typename T >
bool isinf (T value)
 Returns true for a variable of every type that has infinity defined in std and is larger than its maximal value.
template<typename T >
bool isnan (T value)
 Returns true if the given value is not a number (NaN).

Detailed Description

Implements some math functions needed in various parts of the code.

This file reimplements some functionality from math.h in order to overcome some cross-platform problems. There are no execution speed repercussions resulting from this substitution.

Author:
Christian Baumgartner (c.f.baumgartner@gmail.com)

Define Documentation

#define M_PI   3.14159265

Approximation of Pi, if necesseary


Function Documentation

template<typename T >
bool isinf ( value  )  [inline]

Returns true for a variable of every type that has infinity defined in std and is larger than its maximal value.

Parameters:
value A variable of any of the template types.
template<typename T >
bool isnan ( value  )  [inline]

Returns true if the given value is not a number (NaN).

Parameters:
value A value of any of the template types.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines