SLIP  1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
stl_numeric_ext.hpp File Reference

Provides some numeric extensions to STL algorithms. More...

#include <iostream>
#include <cassert>
Include dependency graph for stl_numeric_ext.hpp:

Go to the source code of this file.

Namespaces

 slip
 This namespace corresponds to the kernel of the Simple Library on Image Processing (SLIP). That is to say that it contains the data structures and the algorithms needed by these data strucutres.
 

Functions

template<typename _InputIterator1 , typename _InputIterator2 , typename _MaskIterator , typename _Tp >
_Tp slip::inner_product_mask (_InputIterator1 first1, _InputIterator1 last1, _MaskIterator mask_first, _InputIterator2 first2, _Tp init, typename std::iterator_traits< _MaskIterator >::value_type value=typename std::iterator_traits< _MaskIterator >::value_type(1))
 Compute inner product of two ranges according to a mask range. More...
 
template<typename _InputIterator1 , typename _InputIterator2 , typename _MaskIterator , typename _Tp , typename _BinaryOperation1 , typename _BinaryOperation2 >
_Tp slip::inner_product_mask (_InputIterator1 first1, _InputIterator1 last1, _MaskIterator mask_first, _InputIterator2 first2, _Tp init, _BinaryOperation1 binary_op1, _BinaryOperation2 binary_op2, typename std::iterator_traits< _MaskIterator >::value_type value=typename std::iterator_traits< _MaskIterator >::value_type(1))
 Compute inner product of two ranges according to a mask range. More...
 
template<typename _InputIterator1 , typename _InputIterator2 , typename _Predicate , typename _Tp >
_Tp slip::inner_product_if (_InputIterator1 first1, _InputIterator1 last1, _InputIterator2 first2, _Tp init, _Predicate pred)
 Compute inner product of two ranges according to a Predicate. More...
 
template<typename _InputIterator1 , typename _InputIterator2 , typename _Tp , typename _BinaryOperation1 , typename _BinaryOperation2 , typename _Predicate >
_Tp slip::inner_product_if (_InputIterator1 first1, _InputIterator1 last1, _InputIterator2 first2, _Tp init, _BinaryOperation1 binary_op1, _BinaryOperation2 binary_op2, _Predicate pred)
 Compute inner product of two ranges according to a Predicate. More...
 

Detailed Description

Provides some numeric extensions to STL algorithms.

Definition in file stl_numeric_ext.hpp.