|
template<typename _InputIterator , typename _Tp > |
constexpr _Tp | std::accumulate (_InputIterator __first, _InputIterator __last, _Tp __init) |
|
template<typename _InputIterator , typename _Tp , typename _BinaryOperation > |
constexpr _Tp | std::accumulate (_InputIterator __first, _InputIterator __last, _Tp __init, _BinaryOperation __binary_op) |
|
template<typename _InputIterator , typename _OutputIterator > |
constexpr _OutputIterator | std::adjacent_difference (_InputIterator __first, _InputIterator __last, _OutputIterator __result) |
|
template<typename _InputIterator , typename _OutputIterator , typename _BinaryOperation > |
constexpr _OutputIterator | std::adjacent_difference (_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryOperation __binary_op) |
|
template<typename _InputIterator , typename _OutputIterator , typename _Tp > |
constexpr _OutputIterator | std::exclusive_scan (_InputIterator __first, _InputIterator __last, _OutputIterator __result, _Tp __init) |
|
template<typename _InputIterator , typename _OutputIterator , typename _Tp , typename _BinaryOperation > |
constexpr _OutputIterator | std::exclusive_scan (_InputIterator __first, _InputIterator __last, _OutputIterator __result, _Tp __init, _BinaryOperation __binary_op) |
|
template<typename _InputIterator , typename _OutputIterator > |
constexpr _OutputIterator | std::inclusive_scan (_InputIterator __first, _InputIterator __last, _OutputIterator __result) |
|
template<typename _InputIterator , typename _OutputIterator , typename _BinaryOperation > |
constexpr _OutputIterator | std::inclusive_scan (_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryOperation __binary_op) |
|
template<typename _InputIterator , typename _OutputIterator , typename _BinaryOperation , typename _Tp > |
constexpr _OutputIterator | std::inclusive_scan (_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryOperation __binary_op, _Tp __init) |
|
template<typename _InputIterator1 , typename _InputIterator2 , typename _Tp > |
constexpr _Tp | std::inner_product (_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _Tp __init) |
|
template<typename _InputIterator1 , typename _InputIterator2 , typename _Tp , typename _BinaryOperation1 , typename _BinaryOperation2 > |
constexpr _Tp | std::inner_product (_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _Tp __init, _BinaryOperation1 __binary_op1, _BinaryOperation2 __binary_op2) |
|
template<typename _ForwardIterator , typename _Tp > |
constexpr void | std::iota (_ForwardIterator __first, _ForwardIterator __last, _Tp __value) |
|
template<typename _InputIterator , typename _OutputIterator > |
constexpr _OutputIterator | std::partial_sum (_InputIterator __first, _InputIterator __last, _OutputIterator __result) |
|
template<typename _InputIterator , typename _OutputIterator , typename _BinaryOperation > |
constexpr _OutputIterator | std::partial_sum (_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryOperation __binary_op) |
|
template<typename _InputIterator > |
constexpr iterator_traits< _InputIterator >::value_type | std::reduce (_InputIterator __first, _InputIterator __last) |
|
template<typename _InputIterator , typename _Tp > |
constexpr _Tp | std::reduce (_InputIterator __first, _InputIterator __last, _Tp __init) |
|
template<typename _InputIterator , typename _Tp , typename _BinaryOperation > |
constexpr _Tp | std::reduce (_InputIterator __first, _InputIterator __last, _Tp __init, _BinaryOperation __binary_op) |
|
template<typename _InputIterator , typename _OutputIterator , typename _Tp , typename _BinaryOperation , typename _UnaryOperation > |
constexpr _OutputIterator | std::transform_exclusive_scan (_InputIterator __first, _InputIterator __last, _OutputIterator __result, _Tp __init, _BinaryOperation __binary_op, _UnaryOperation __unary_op) |
|
template<typename _InputIterator , typename _OutputIterator , typename _BinaryOperation , typename _UnaryOperation > |
constexpr _OutputIterator | std::transform_inclusive_scan (_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op) |
|
template<typename _InputIterator , typename _OutputIterator , typename _BinaryOperation , typename _UnaryOperation , typename _Tp > |
constexpr _OutputIterator | std::transform_inclusive_scan (_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op, _Tp __init) |
|
template<typename _InputIterator , typename _Tp , typename _BinaryOperation , typename _UnaryOperation > |
constexpr _Tp | std::transform_reduce (_InputIterator __first, _InputIterator __last, _Tp __init, _BinaryOperation __binary_op, _UnaryOperation __unary_op) |
|
template<typename _InputIterator1 , typename _InputIterator2 , typename _Tp > |
constexpr _Tp | std::transform_reduce (_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _Tp __init) |
|
template<typename _InputIterator1 , typename _InputIterator2 , typename _Tp , typename _BinaryOperation1 , typename _BinaryOperation2 > |
constexpr _Tp | std::transform_reduce (_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _Tp __init, _BinaryOperation1 __binary_op1, _BinaryOperation2 __binary_op2) |
|
Output the cumulative sum of one range to a second range.
- Parameters
-
__first | Start of input range. |
__last | End of input range. |
__result | Start of output range. |
__init | Initial value. |
- Returns
- The end of the output range.
Write the cumulative sum (aka prefix sum, aka scan) of the input range to the output range. Each element of the output range contains the running total of all earlier elements (and the initial value), using std::plus<>
for summation.
This function generates an "exclusive" scan, meaning the Nth element of the output range is the sum of the first N-1 input elements, so the Nth input element is not included.
Definition at line 516 of file numeric.
Output the cumulative sum of one range to a second range.
- Parameters
-
__first | Start of input range. |
__last | End of input range. |
__result | Start of output range. |
- Returns
- The end of the output range.
Write the cumulative sum (aka prefix sum, aka scan) of the input range to the output range. Each element of the output range contains the running total of all earlier elements, using std::plus<>
for summation.
This function generates an "inclusive" scan, meaning the Nth element of the output range is the sum of the first N input elements, so the Nth input element is included.
Definition at line 607 of file numeric.