Condividi tramite


numeric (STL/CLR)

Defines container template functions that perform algorithms provided for numerical processing.

#include <cliext/numeric>

Functions

Function

Description

accumulate (STL/CLR)

Computes the sum of all the elements in a specified range including some initial value by computing successive partial sums or computes the result of successive partial results similarly obtained from using a specified binary operation other than the sum.

adjacent_difference (STL/CLR)

Computes the successive differences between each element and its predecessor in an input range and outputs the results to a destination range or computes the result of a generalized procedure where the difference operation is replaced by another, specified binary operation.

inner_product (STL/CLR)

Computes the sum of the element-wise product of two ranges and adds it to a specified initial value or computes the result of a generalized procedure where the sum and product binary operations are replaced by other specified binary operations.

partial_sum (STL/CLR)

Computes a series of sums in an input range from the first element through the ith element and stores the result of each such sum in ith element of a destination range or computes the result of a generalized procedure where the sum operation is replaced by another specified binary operation.

Requirements

Header: <cliext/numeric>

Namespace: cliext

See Also

Concepts

STL/CLR Library Reference