|
STIR 6.4.0
|
Implementation of some functions missing from std::algorithm. More...
#include "stir/numerics/norm.h"Go to the source code of this file.
Namespaces | |
| namespace | stir |
| Namespace for the STIR library (and some/most of its applications) | |
Functions | |
| template<class iterT> | |
| iterT | stir::abs_max_element (iterT start, iterT end) |
| Like std::max_element, but comparing after taking absolute value. | |
| template<class IterT, class elemT> | |
| elemT | stir::sum (IterT start, IterT end, elemT init) |
| Compute the sum of a sequence using operator+=(), using an initial value. | |
| template<class IterT> | |
| std::iterator_traits< IterT >::value_type | stir::sum (IterT start, IterT end) |
| Compute the sum of a sequence using operator+=(). | |
| template<class IterT> | |
| std::iterator_traits< IterT >::value_type | stir::average (IterT start, IterT end) |
| Compute the average of a sequence using sum(start,end). | |
Implementation of some functions missing from std::algorithm.