You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bed998c
Browse filesBrowse the repository at this point in the historyBrowse files
helpviewer_keywords: ["numeric functions [STL/CLR]", "<cliext/numeric> header [STL/CLR]", "<numeric> header [STL/CLR]", "accumulate function [STL/CLR]", "adjacent_difference function [STL/CLR]", "inner_product function [STL/CLR]", "partial_sum function [STL/CLR]"]
10
10
ms.assetid: 1dc4d9a3-e734-459c-9678-5d9be0ef4c79
11
11
author: "mikeblome"
12
12
ms.author: "mblome"
@@ -20,20 +20,86 @@ Defines container template functions that perform algorithms provided for numeri
20
20
```
21
21
#include <cliext/numeric>
22
22
```
23
+
24
+
## Requirements
25
+
**Header:**\<cliext/numeric>
26
+
27
+
**Namespace:** cliext
23
28
24
-
## Functions
29
+
## Declarations
25
30
26
31
|Function|Description|
27
32
|--------------|-----------------|
28
-
|[accumulate (STL/CLR)](../dotnet/accumulate-stl-clr.md)|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.|
29
-
|[adjacent_difference (STL/CLR)](../dotnet/adjacent-difference-stl-clr.md)|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.|
30
-
|[inner_product (STL/CLR)](../dotnet/inner-product-stl-clr.md)|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.|
31
-
|[partial_sum (STL/CLR)](../dotnet/partial-sum-stl-clr.md)|Computes a series of sums in an input range from the first element through the `i`th element and stores the result of each such sum in `i`th element of a destination range or computes the result of a generalized procedure where the sum operation is replaced by another specified binary operation.|
33
+
|[accumulate (STL/CLR)](#accumulate)|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.|
34
+
|[adjacent_difference (STL/CLR)](#adjacent_difference)|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.|
35
+
|[inner_product (STL/CLR)](#inner_product)|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.|
36
+
|[partial_sum (STL/CLR)](#partial_sum)|Computes a series of sums in an input range from the first element through the `i`th element and stores the result of each such sum in `i`th element of a destination range or computes the result of a generalized procedure where the sum operation is replaced by another specified binary operation.|
37
+
38
+
## Functions
39
+
40
+
## <aname="accumulate"></a> accumulate (STL/CLR)
41
+
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.
This function behaves the same as the C++ Standard Library numeric function `accumulate`. For more information, see [accumulate](../standard-library/numeric-functions.md#accumulate).
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.
This function behaves the same as the C++ Standard Library numeric function `adjacent_difference`. For more information, see [adjacent_difference](../standard-library/numeric-functions.md#adjacent_difference).
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.
74
+
75
+
###Syntax
76
+
77
+
```
78
+
template<class _InIt1, class _InIt2, class _Ty> inline
This function behaves the same as the C++ Standard Library numeric function `inner_product`. For more information, see [inner_product](../standard-library/numeric-functions.md#inner_product).
Computes a series of sums in an input range from the first element through the `i`th element and stores the result of each such sum in `i`th element of a destination range or computes the result of a generalized procedure where the sum operation is replaced by another specified binary operation.
This function behaves the same as the C++ Standard Library numeric function `partial_sum`. For more information, see [partial_sum](../standard-library/numeric-functions.md#partial_sum).
0 commit comments