GATE
mathematics.hpp File Reference

Basic arithmetic utilities optimized for GATE types. More...

Functions

template<class T >
bool_t gate::math::isZero (T num)
 
bool_t gate::math::isZero (real32_t num)
 
bool_t gate::math::isZero (real64_t num)
 
template<class T >
bool_t gate::math::isNan (T num)
 
bool_t gate::math::isNan (real32_t num)
 
bool_t gate::math::isNan (real64_t num)
 
template<class T >
bool_t gate::math::isInfinite (T num)
 
bool_t gate::math::isInfinite (real32_t num)
 
bool_t gate::math::isInfinite (real64_t num)
 
template<class T >
int gate::math::signum (T num)
 
int gate::math::signum (int8_t num)
 
int gate::math::signum (int16_t num)
 
int gate::math::signum (int32_t num)
 
int gate::math::signum (real32_t num)
 
int gate::math::signum (real64_t num)
 
template<class T >
gate::math::abs (T num)
 
template<class T >
gate::math::minimum (T num1, T num2)
 
template<class T >
gate::math::maximum (T num1, T num2)
 
template<class T >
uint8_t gate::math::decimal_length (T num)
 
template<class T >
gate::math::cos (T num)
 
real32_t gate::math::cos (real32_t num)
 
real64_t gate::math::cos (real64_t num)
 
template<class T >
gate::math::sin (T num)
 
real32_t gate::math::sin (real32_t num)
 
real64_t gate::math::sin (real64_t num)
 
template<class T >
gate::math::tan (T num)
 
real32_t gate::math::tan (real32_t num)
 
real64_t gate::math::tan (real64_t num)
 
template<class T >
gate::math::acos (T num)
 
real32_t gate::math::acos (real32_t num)
 
real64_t gate::math::acos (real64_t num)
 
template<class T >
gate::math::asin (T num)
 
real32_t gate::math::asin (real32_t num)
 
real64_t gate::math::asin (real64_t num)
 
template<class T >
gate::math::atan (T num)
 
real32_t gate::math::atan (real32_t num)
 
real64_t gate::math::atan (real64_t num)
 
template<class T >
gate::math::atan2 (T y, T x)
 
real32_t gate::math::atan2 (real32_t y, real32_t x)
 
real64_t gate::math::atan2 (real64_t y, real64_t x)
 
template<class T >
gate::math::cosh (T num)
 
real32_t gate::math::cosh (real32_t num)
 
real64_t gate::math::cosh (real64_t num)
 
template<class T >
gate::math::sinh (T num)
 
real32_t gate::math::sinh (real32_t num)
 
real64_t gate::math::sinh (real64_t num)
 
template<class T >
gate::math::tanh (T num)
 
real32_t gate::math::tanh (real32_t num)
 
real64_t gate::math::tanh (real64_t num)
 
template<class T >
gate::math::acosh (T num)
 
real32_t gate::math::acosh (real32_t num)
 
real64_t gate::math::acosh (real64_t num)
 
template<class T >
gate::math::asinh (T num)
 
real32_t gate::math::asinh (real32_t num)
 
real64_t gate::math::asinh (real64_t num)
 
template<class T >
gate::math::atanh (T num)
 
real32_t gate::math::atanh (real32_t num)
 
real64_t gate::math::atanh (real64_t num)
 
template<class T >
gate::math::exp (T num)
 
real32_t gate::math::exp (real32_t num)
 
real64_t gate::math::exp (real64_t num)
 
template<class T >
gate::math::frexp (T num, int *exp)
 
real32_t gate::math::frexp (real32_t num, int *exp)
 
real64_t gate::math::frexp (real64_t num, int *exp)
 
template<class T >
gate::math::ldexp (T num, int exp)
 
real32_t gate::math::ldexp (real32_t num, int exp)
 
real64_t gate::math::ldexp (real64_t num, int exp)
 
template<class T >
gate::math::log (T num)
 
real32_t gate::math::log (real32_t num)
 
real64_t gate::math::log (real64_t num)
 
template<class T >
gate::math::log10 (T num)
 
real32_t gate::math::log10 (real32_t num)
 
real64_t gate::math::log10 (real64_t num)
 
template<class T >
gate::math::modf (T num, T *exp)
 
real32_t gate::math::modf (real32_t num, real32_t *exp)
 
real64_t gate::math::modf (real64_t num, real64_t *exp)
 
template<class T >
gate::math::pow (T num, T exp)
 
real32_t gate::math::pow (real32_t num, real32_t exp)
 
real64_t gate::math::pow (real64_t num, real64_t exp)
 
template<class T >
gate::math::sqrt (T num)
 
real32_t gate::math::sqrt (real32_t num)
 
real64_t gate::math::sqrt (real64_t num)
 
template<class T >
gate::math::ceil (T num)
 
real32_t gate::math::ceil (real32_t num)
 
real64_t gate::math::ceil (real64_t num)
 
template<class T >
gate::math::floor (T num)
 
real32_t gate::math::floor (real32_t num)
 
real64_t gate::math::floor (real64_t num)
 
template<class T >
gate::math::deg2rad (T num)
 
real32_t gate::math::deg2rad (real32_t num)
 
real64_t gate::math::deg2rad (real64_t num)
 
template<class T >
gate::math::rad2deg (T num)
 
real32_t gate::math::rad2deg (real32_t num)
 
real64_t gate::math::rad2deg (real64_t num)
 

Detailed Description

Basic arithmetic utilities optimized for GATE types.