STIR  6.2.0
Namespaces | Functions
more_algorithms.h File Reference

Declaration of some functions missing from std::algorithm. More...

#include "stir/common.h"
#include <iterator>
#include "stir/more_algorithms.inl"

Go to the source code of this file.

Namespaces

 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. More...
 
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. More...
 
template<class IterT >
std::iterator_traits< IterT >::value_type stir::sum (IterT start, IterT end)
 Compute the sum of a sequence using operator+=(). More...
 
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). More...
 

Detailed Description

Declaration of some functions missing from std::algorithm.

Author
Kris Thielemans