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

Numeric functions (to avoid dependency on numeric package) More...

#include <algorithm>
#include <utility/assert.hh>
#include <cmath>
#include <limits>

Go to the source code of this file.

Namespaces

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

Functions

short int utility::min (short int const a, short int const b)
 min( short int, short int ) More...
 
int utility::min (int const a, int const b)
 min( int, int ) More...
 
long int utility::min (long int const a, long int const b)
 min( long int, long int ) More...
 
unsigned short int utility::min (unsigned short int const a, unsigned short int const b)
 min( unsigned short int, unsigned short int ) More...
 
unsigned int utility::min (unsigned int const a, unsigned int const b)
 min( unsigned int, unsigned int ) More...
 
unsigned long int utility::min (unsigned long int const a, unsigned long int const b)
 min( unsigned long int, unsigned long int ) More...
 
float utility::min (float const a, float const b)
 min( float, float ) More...
 
double utility::min (double const a, double const b)
 min( double, double ) More...
 
long double utility::min (long double const a, long double const b)
 min( long double, long double ) More...
 
template<typename T >
T const & utility::min (T const &a, T const &b, T const &c)
 min( a, b, c ) More...
 
template<typename T >
T const & utility::min (T const &a, T const &b, T const &c, T const &d)
 min( a, b, c, d ) More...
 
template<typename T >
T const & utility::min (T const &a, T const &b, T const &c, T const &d, T const &e)
 min( a, b, c, d, e ) More...
 
template<typename T >
T const & utility::min (T const &a, T const &b, T const &c, T const &d, T const &e, T const &f)
 min( a, b, c, d, e, f ) More...
 
short int utility::max (short int const a, short int const b)
 max( short int, short int ) More...
 
int utility::max (int const a, int const b)
 max( int, int ) More...
 
long int utility::max (long int const a, long int const b)
 max( long int, long int ) More...
 
unsigned short int utility::max (unsigned short int const a, unsigned short int const b)
 max( unsigned short int, unsigned short int ) More...
 
unsigned int utility::max (unsigned int const a, unsigned int const b)
 max( unsigned int, unsigned int ) More...
 
unsigned long int utility::max (unsigned long int const a, unsigned long int const b)
 max( unsigned long int, unsigned long int ) More...
 
float utility::max (float const a, float const b)
 max( float, float ) More...
 
double utility::max (double const a, double const b)
 max( double, double ) More...
 
long double utility::max (long double const a, long double const b)
 max( long double, long double ) More...
 
template<typename T >
T const & utility::max (T const &a, T const &b, T const &c)
 max( a, b, c ) More...
 
template<typename T >
T const & utility::max (T const &a, T const &b, T const &c, T const &d)
 max( a, b, c, d ) More...
 
template<typename T >
T const & utility::max (T const &a, T const &b, T const &c, T const &d, T const &e)
 max( a, b, c, d, e ) More...
 
template<typename T >
T const & utility::max (T const &a, T const &b, T const &c, T const &d, T const &e, T const &f)
 max( a, b, c, d, e, f ) More...
 

Detailed Description

Numeric functions (to avoid dependency on numeric package)

Author
Stuart G. Mentzer (Stuar.nosp@m.t_Me.nosp@m.ntzer.nosp@m.@obj.nosp@m.exx.c.nosp@m.om)

Definition in file utility.functions.hh.