Cpp Standard Library 简明教程
C++ Library - <numeric>
Introduction
用于概括数字操作,这个头文件描述了一组算法,用于对数字值序列执行某些操作。在 C++ 中,它包括常见的数学函数和类型,以及优化的数字数组和对随机数生成的 支持。
It is used to generalized numeric operations and this header describes a set of algorithms to perform certain operations on sequences of numeric values. In C++, It includes common mathematical functions and types, as well as optimized numeric arrays and support for random number generation.
Functions
Sr.No. |
Function & description |
1 |
accumulateIt is used accumulate values in range. |
2 |
adjacent_differenceIt is used to compute adjacent difference of range. |
3 |
inner_productIt is used to compute cumulative inner product of range. |
4 |
partial_sumIt is used to compute partial sums of range. |
5 |
iotaIt is used to store increasing sequence. |