Rosetta  2016.11
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Functions
numbers.hh File Reference

Brief utility classes for numeric usage. More...

#include <platform/types.hh>
#include <limits>
#include <cmath>

Namespaces

 utility
 unresizable vector whose size is known at compile time, which may be allocated on the stack, and which indexes from 0.
 

Functions

platform::Size utility::get_undefined_size ()
 Get a numeric value for Size that represents an "undefined" value. More...
 
bool utility::is_undefined (platform::Size const &val)
 Check if a Size is undefined (i.e has the same value as utility::get_undefined_size() ) More...
 
platform::Real utility::get_undefined_real ()
 Get a numeric value for Real that represents an "undefined" value. More...
 
bool utility::is_undefined (platform::Real const &val)
 Check if a Real is undefined (i.e has the same value as utility::get_undefined_real() ) More...
 
bool utility::is_nan (platform::Real const &val)
 
bool utility::is_inf (platform::Real const &val)
 
platform::Real utility::round (platform::Real const &val)
 
platform::Real utility::copysign (platform::Real const &x, platform::Real const &y)
 

Detailed Description

Brief utility classes for numeric usage.

For more complex numeric utilties, see the numeric namespace

Author
Rocco Moretti