STIR 6.4.0
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

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).
 

Detailed Description

Declaration of some functions missing from std::algorithm.

Author
Kris Thielemans