|
Limbo
|
mathematical utilities such as abs More...
#include <iterator>#include <limits>Go to the source code of this file.
Namespaces | |
| limbo | |
| namespace for Limbo | |
Functions | |||
| template<typename T > | |||
| T | limbo::abs (T const &t) | ||
| generalized api can handle both integer and floating points More... | |||
| template<typename Iterator > | |||
| std::iterator_traits< Iterator > ::value_type | limbo::sum (Iterator first, Iterator last) | ||
| get summation of an array More... | |||
| template<typename Iterator > | |||
| std::iterator_traits< Iterator > ::value_type | limbo::average (Iterator first, Iterator last) | ||
| get average of an array More... | |||
| template<typename Iterator > | |||
| std::iterator_traits< Iterator > ::value_type | limbo::max (Iterator first, Iterator last) | ||
| get max of an array More... | |||
| template<typename Iterator > | |||
| std::iterator_traits< Iterator > ::value_type | limbo::min (Iterator first, Iterator last) | ||
| get min of an array More... | |||
generic functions to get lowest value of numbers, i.e., min for integers, -max for floating point numbers | |||
generic function to get lowest value of numbers
| |||
| template<typename T > | |||
| T | limbo::lowest () | ||
| template<> | |||
| char | limbo::lowest< char > () | ||
| specialization for integer types | |||
| template<> | |||
| unsigned char | limbo::lowest< unsigned char > () | ||
| specialization for integer types | |||
| template<> | |||
| short | limbo::lowest< short > () | ||
| specialization for integer types | |||
| template<> | |||
| unsigned short | limbo::lowest< unsigned short > () | ||
| specialization for integer types | |||
| template<> | |||
| int | limbo::lowest< int > () | ||
| specialization for integer types | |||
| template<> | |||
| unsigned int | limbo::lowest< unsigned int > () | ||
| specialization for integer types | |||
| template<> | |||
| long | limbo::lowest< long > () | ||
| specialization for integer types | |||
| template<> | |||
| unsigned long | limbo::lowest< unsigned long > () | ||
| specialization for integer types | |||
| template<> | |||
| long long | limbo::lowest< long long > () | ||
| specialization for integer types | |||
| template<> | |||
| unsigned long long | limbo::lowest< unsigned long long > () | ||
| specialization for integer types | |||
| template<> | |||
| float | limbo::lowest< float > () | ||
| specialization for floating point types | |||
| template<> | |||
| double | limbo::lowest< double > () | ||
| specialization for floating point types | |||
| template<> | |||
| long double | limbo::lowest< long double > () | ||
| specialization for floating point types | |||
1.8.8