CVR-Lib last update 20 Sep 2009

cvrMath.h File Reference

Definition of some usually used global functions like min, max, and many standard functions with are used differently by the different compilers. More...

#include "cvrObject.h"
#include "cvrTypes.h"
#include <cmath>
#include <limits>
#include "cvrMath_inline.h"

Include dependency graph for cvrMath.h:

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

Go to the source code of this file.

Namespaces

namespace  cvr

Functions

template<class T >
bool cvr::closeTo (const T &a, const T &b, const T epsilon=std::numeric_limits< T >::epsilon())
template<class T >
bool cvr::closeToZero (const T &a, const T epsilon=std::numeric_limits< T >::epsilon())
template<typename T >
cvr::min (const T x, const T y)
template<typename T >
cvr::max (const T x, const T y)
template<typename T >
cvr::min (const T x, const T y, const T z)
template<typename T >
cvr::max (const T x, const T y, const T z)
template<typename T >
cvr::within (const T x, const T lower, const T upper)
template<typename T >
void cvr::minmax (const T x, const T y, T &theMin, T &theMax)
template<typename T >
void cvr::minmax (T &theMin, T &theMax)
template<typename T >
void cvr::minmax (const T x, T &theMin, T &theMax)
double cvr::degToRad (const double &deg)
float cvr::degToRad (const float &deg)
double cvr::degToRad (const int deg)
double cvr::radToDeg (const double &rad)
float cvr::radToDeg (const float &rad)
byte cvr::abs (byte x)
int cvr::abs (int x)
float cvr::abs (float x)
double cvr::abs (const double &x)
template<typename T >
cvr::absdiff (const T &x, const T &y)
double cvr::reciprocal (const double &x)
float cvr::reciprocal (const float &x)
double cvr::oneMinus (const double &x)
float cvr::oneMinus (const float &x)
int cvr::oneMinus (const int x)
template<typename T >
cvr::rectify (const T &x)
template<typename T >
cvr::sqr (const T &x)
template<typename T >
cvr::sqrAbs (const T &x)
template<typename T >
cvr::conj (const T cn)
int cvr::sqrt (int x)
unsigned int cvr::sqrt (unsigned int x)
float cvr::sqrt (const float &x)
double cvr::sqrt (const double &x)
template<typename T >
cvr::sqrtrect (const T x)
float cvr::sigmoid (const float x)
double cvr::sigmoid (const double &x)
double cvr::sigmoid (const int x)
template<typename T >
cvr::signum (T x)
template<typename T >
cvr::signum0 (T x)
template<typename T >
bool cvr::even (const T x)
template<typename T >
bool cvr::odd (const T x)

Variables

const double cvr::Pi = 3.1415926535897932
const double cvr::NaN = log(-1.0)
const double cvr::Inf = tan(Pi/2.0)


Detailed Description

Definition of some usually used global functions like min, max, and many standard functions with are used differently by the different compilers.

Author:
Thomas Rusert

Pablo Alvarado

Date:
28.04.1999
Id
cvrMath.h,v 1.12 2007/09/15 03:36:57 alvarado Exp

Generated on Sun Sep 20 22:08:20 2009 for CVR-Lib by Doxygen 1.5.8