numeric header

From Cppwiki

Jump to: navigation, search

numeric is a C++ Standard Library #include. It is responsible for defining algorithmic functions for numeric processing.

Functions defined by <numeric>

 std::accumulate - Calculate the sum of all elements in a sequence.
 std::adjacent_difference - Calculate the difference between each element and its predecessor in a sequence.
 std::inner_product - Compute the sum of the element wise product of two sequences.
 std::partial_sum - Compute a series of sums in a sequence.
Personal tools