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