/home/ntakagi/work/STLport-5.1.5/stlport/stl/_numeric.h File Reference

#include <stl/_function_base.h>
#include <stl/_iterator_base.h>
#include <stl/_numeric.c>

Go to the source code of this file.

Functions

template<class _InputIterator, class _Tp>
_STLP_BEGIN_NAMESPACE _STLP_INLINE_LOOP
_Tp 
accumulate (_InputIterator __first, _InputIterator __last, _Tp _Init)
template<class _InputIterator, class _Tp, class _BinaryOperation>
_STLP_INLINE_LOOP _Tp accumulate (_InputIterator __first, _InputIterator __last, _Tp _Init, _BinaryOperation __binary_op)
template<class _InputIterator1, class _InputIterator2, class _Tp>
_STLP_INLINE_LOOP _Tp inner_product (_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _Tp _Init)
template<class _InputIterator1, class _InputIterator2, class _Tp, class _BinaryOperation1, class _BinaryOperation2>
_STLP_INLINE_LOOP _Tp inner_product (_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _Tp _Init, _BinaryOperation1 __binary_op1, _BinaryOperation2 __binary_op2)
template<class _InputIterator, class _OutputIterator, class _Tp, class _BinaryOperation>
_STLP_MOVE_TO_PRIV_NAMESPACE
_OutputIterator 
__partial_sum (_InputIterator __first, _InputIterator __last, _OutputIterator __result, _Tp *, _BinaryOperation __binary_op)
template<class _InputIterator, class _OutputIterator>
_STLP_MOVE_TO_STD_NAMESPACE
_OutputIterator 
partial_sum (_InputIterator __first, _InputIterator __last, _OutputIterator __result)
template<class _InputIterator, class _OutputIterator, class _BinaryOperation>
_OutputIterator partial_sum (_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryOperation __binary_op)
template<class _InputIterator, class _OutputIterator, class _Tp, class _BinaryOperation>
_STLP_MOVE_TO_PRIV_NAMESPACE
_OutputIterator 
__adjacent_difference (_InputIterator __first, _InputIterator __last, _OutputIterator __result, _Tp *, _BinaryOperation __binary_op)
template<class _InputIterator, class _OutputIterator>
_STLP_MOVE_TO_STD_NAMESPACE
_OutputIterator 
adjacent_difference (_InputIterator __first, _InputIterator __last, _OutputIterator __result)
template<class _InputIterator, class _OutputIterator, class _BinaryOperation>
_OutputIterator adjacent_difference (_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryOperation __binary_op)
template<class _Tp, class _Integer, class _MonoidOperation>
_STLP_MOVE_TO_PRIV_NAMESPACE
_Tp 
__power (_Tp __x, _Integer __n, _MonoidOperation __opr)
template<class _Tp, class _Integer>
_STLP_MOVE_TO_STD_NAMESPACE
_STLP_MOVE_TO_PRIV_NAMESPACE
_Tp 
__power (_Tp __x, _Integer __n)
template<class _Tp, class _Integer, class _MonoidOperation>
_STLP_MOVE_TO_STD_NAMESPACE
_Tp 
power (_Tp __x, _Integer __n, _MonoidOperation __opr)
template<class _Tp, class _Integer>
_Tp power (_Tp __x, _Integer __n)
template<class _ForwardIterator, class _Tp>
_STLP_INLINE_LOOP void iota (_ForwardIterator __first, _ForwardIterator __last, _Tp __val)


Function Documentation

template<class _InputIterator, class _OutputIterator, class _Tp, class _BinaryOperation>
_STLP_MOVE_TO_PRIV_NAMESPACE _OutputIterator __adjacent_difference ( _InputIterator  __first,
_InputIterator  __last,
_OutputIterator  __result,
_Tp *  ,
_BinaryOperation  __binary_op 
)

Definition at line 57 of file _numeric.c.

References _STLP_DEBUG_CHECK.

Referenced by adjacent_difference().

template<class _InputIterator, class _OutputIterator, class _Tp, class _BinaryOperation>
_STLP_MOVE_TO_PRIV_NAMESPACE _OutputIterator __partial_sum ( _InputIterator  __first,
_InputIterator  __last,
_OutputIterator  __result,
_Tp *  ,
_BinaryOperation  __binary_op 
)

Definition at line 40 of file _numeric.c.

References _STLP_DEBUG_CHECK.

Referenced by partial_sum().

template<class _Tp, class _Integer>
_STLP_MOVE_TO_STD_NAMESPACE _STLP_MOVE_TO_PRIV_NAMESPACE _Tp __power ( _Tp  __x,
_Integer  __n 
) [inline]

Definition at line 152 of file _numeric.h.

References __power().

template<class _Tp, class _Integer, class _MonoidOperation>
_STLP_MOVE_TO_PRIV_NAMESPACE _Tp __power ( _Tp  __x,
_Integer  __n,
_MonoidOperation  __opr 
)

template<class _InputIterator, class _Tp, class _BinaryOperation>
_STLP_INLINE_LOOP _Tp accumulate ( _InputIterator  __first,
_InputIterator  __last,
_Tp  _Init,
_BinaryOperation  __binary_op 
)

Definition at line 51 of file _numeric.h.

References _STLP_DEBUG_CHECK, and _STLP_PRIV.

template<class _InputIterator, class _Tp>
_STLP_BEGIN_NAMESPACE _STLP_INLINE_LOOP _Tp accumulate ( _InputIterator  __first,
_InputIterator  __last,
_Tp  _Init 
)

Definition at line 42 of file _numeric.h.

References _STLP_DEBUG_CHECK, and _STLP_PRIV.

Referenced by gslice::_M_size(), and valarray< _Size >::sum().

template<class _InputIterator, class _OutputIterator, class _BinaryOperation>
_OutputIterator adjacent_difference ( _InputIterator  __first,
_InputIterator  __last,
_OutputIterator  __result,
_BinaryOperation  __binary_op 
)

Definition at line 130 of file _numeric.h.

References __adjacent_difference(), _STLP_PRIV, and _STLP_VALUE_TYPE.

template<class _InputIterator, class _OutputIterator>
_STLP_MOVE_TO_STD_NAMESPACE _OutputIterator adjacent_difference ( _InputIterator  __first,
_InputIterator  __last,
_OutputIterator  __result 
) [inline]

Definition at line 121 of file _numeric.h.

References __adjacent_difference(), __minus(), _STLP_PRIV, and _STLP_VALUE_TYPE.

template<class _InputIterator1, class _InputIterator2, class _Tp, class _BinaryOperation1, class _BinaryOperation2>
_STLP_INLINE_LOOP _Tp inner_product ( _InputIterator1  __first1,
_InputIterator1  __last1,
_InputIterator2  __first2,
_Tp  _Init,
_BinaryOperation1  __binary_op1,
_BinaryOperation2  __binary_op2 
)

Definition at line 72 of file _numeric.h.

References _STLP_DEBUG_CHECK, and _STLP_PRIV.

template<class _InputIterator1, class _InputIterator2, class _Tp>
_STLP_INLINE_LOOP _Tp inner_product ( _InputIterator1  __first1,
_InputIterator1  __last1,
_InputIterator2  __first2,
_Tp  _Init 
)

Definition at line 61 of file _numeric.h.

References _STLP_DEBUG_CHECK, and _STLP_PRIV.

template<class _ForwardIterator, class _Tp>
_STLP_INLINE_LOOP void iota ( _ForwardIterator  __first,
_ForwardIterator  __last,
_Tp  __val 
)

Definition at line 174 of file _numeric.h.

References _STLP_DEBUG_CHECK, and _STLP_PRIV.

template<class _InputIterator, class _OutputIterator, class _BinaryOperation>
_OutputIterator partial_sum ( _InputIterator  __first,
_InputIterator  __last,
_OutputIterator  __result,
_BinaryOperation  __binary_op 
) [inline]

Definition at line 102 of file _numeric.h.

References __partial_sum(), _STLP_PRIV, and _STLP_VALUE_TYPE.

template<class _InputIterator, class _OutputIterator>
_STLP_MOVE_TO_STD_NAMESPACE _OutputIterator partial_sum ( _InputIterator  __first,
_InputIterator  __last,
_OutputIterator  __result 
) [inline]

Definition at line 94 of file _numeric.h.

References __partial_sum(), __plus(), _STLP_PRIV, and _STLP_VALUE_TYPE.

template<class _Tp, class _Integer>
_Tp power ( _Tp  __x,
_Integer  __n 
) [inline]

Definition at line 166 of file _numeric.h.

References __power(), and _STLP_PRIV.

template<class _Tp, class _Integer, class _MonoidOperation>
_STLP_MOVE_TO_STD_NAMESPACE _Tp power ( _Tp  __x,
_Integer  __n,
_MonoidOperation  __opr 
) [inline]

Definition at line 161 of file _numeric.h.

References __power(), and _STLP_PRIV.



Generated on Mon Mar 10 15:32:49 2008 by  doxygen 1.5.1