#include <debug/debug.h>
Include dependency graph for stl_numeric.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
namespace | std |
Functions | |
template<typename InputIterator, typename Type> | |
Type | accumulate (InputIterator first, InputIterator last, Type init) |
Accumulate values in a range. | |
template<typename InputIterator, typename Type, typename BinaryOperation> | |
Type | accumulate (InputIterator first, InputIterator last, Type init, BinaryOperation __binary_op) |
Accumulate values in a range with operation. | |
template<typename InputIterator1, typename InputIterator2, typename Type> | |
Type | inner_product (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, Type init) |
Compute inner product of two ranges. | |
template<typename InputIterator1, typename InputIterator2, typename Type, typename BinaryOperation1, typename BinaryOperation2> | |
Type | inner_product (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, Type init, BinaryOperation1 __binary_op1, BinaryOperation2 __binary_op2) |
Compute inner product of two ranges. | |
template<typename InputIterator, typename OutputIterator> | |
OutputIterator | partial_sum (InputIterator first, InputIterator last, OutputIterator __result) |
Return list of partial sums. | |
template<typename InputIterator, typename OutputIterator, typename BinaryOperation> | |
OutputIterator | partial_sum (InputIterator first, InputIterator last, OutputIterator __result, BinaryOperation __binary_op) |
Return list of partial sums. | |
template<typename InputIterator, typename OutputIterator> | |
OutputIterator | adjacent_difference (InputIterator first, InputIterator last, OutputIterator __result) |
Return differences between adjacent values. | |
template<typename InputIterator, typename OutputIterator, typename BinaryOperation> | |
OutputIterator | adjacent_difference (InputIterator first, InputIterator last, OutputIterator __result, BinaryOperation __binary_op) |
Return differences between adjacent values. |
Definition in file stl_numeric.h.
|
Accumulate values in a range with operation. Accumulates the values in the range [first,last) using the function object binary_op. The initial value is init. The values are processed in order.
Definition at line 108 of file stl_numeric.h. |
|
Accumulate values in a range. Accumulates the values in the range [first,last) using operator+(). The initial value is init. The values are processed in order.
Definition at line 82 of file stl_numeric.h. |
|
Return differences between adjacent values. Computes the difference between adjacent values in the range [first,last) using the function object binary_op and writes the result to result.
Definition at line 303 of file stl_numeric.h. |
|
Return differences between adjacent values. Computes the difference between adjacent values in the range [first,last) using operator-() and writes the result to result.
Definition at line 268 of file stl_numeric.h. |
|
Compute inner product of two ranges. Starting with an initial value of init, applies binary_op2 to successive elements from the two ranges and accumulates each result into the accumulated value using binary_op1. The values in the ranges are processed in order.
Definition at line 168 of file stl_numeric.h. |
|
Compute inner product of two ranges. Starting with an initial value of init, multiplies successive elements from the two ranges and adds each product into the accumulated value using operator+(). The values in the ranges are processed in order.
Definition at line 136 of file stl_numeric.h. |
|
Return list of partial sums. Accumulates the values in the range [first,last) using 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.
Definition at line 235 of file stl_numeric.h. |
|
Return list of partial sums. Accumulates the values in the range [first,last) using 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.
Definition at line 199 of file stl_numeric.h. |