|
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. |
__init | Initial value. |
__binary_op | Function to perform summation. |
- 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 binary_op
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 482 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.
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. |
__binary_op | Function to perform summation. |
- 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 binary_op
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 574 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. |
__binary_op | Function to perform summation. |
__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 binary_op
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 545 of file numeric.
Return list of partial sums.
Accumulates the values in the range [first,last) using the +
operator. As each successive input value is added into the total, that partial sum is written to __result
. Therefore, the first value in __result
is the first value of the input, the second value in __result
is the sum of the first and second input values, and so on.
- Parameters
-
__first | Start of input range. |
__last | End of input range. |
__result | Output sum. |
- Returns
- Iterator pointing just beyond the values written to __result.
Definition at line 256 of file stl_numeric.h.
Referenced by __gnu_parallel::__parallel_random_shuffle_drs_pu(), and __gnu_parallel::__sequential_random_shuffle().
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. |
__binary_op | Function to perform summation. |
__unary_op | Function to transform elements of the input 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 (and the initial value), using __unary_op
to transform the input elements and using __binary_op
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 635 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. |
__binary_op | Function to perform summation. |
__unary_op | Function to transform elements of the input 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 __unary_op
to transform the input elements and using __binary_op
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 708 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. |
__binary_op | Function to perform summation. |
__unary_op | Function to transform elements of the input 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 __unary_op
to transform the input elements and using __binary_op
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 674 of file numeric.