Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
template<class _InIt1, class _InIt2, class _Ty> inline
_Ty inner_product(_InIt1 _First1, _InIt1 _Last1, _InIt2 _First2,
_Ty _Val);
template<class _InIt1, class _InIt2, class _Ty, class _Fn21,
class _Fn22> inline
_Ty inner_product(_InIt1 _First1, _InIt1 _Last1, _InIt2 _First2,
_Ty _Val, _Fn21 _Func1, _Fn22 _Func2);
Remarks
This function behaves the same as the STL numeric function inner_product. For more information, see inner_product.
Requirements
Header: <cliext/numeric>
Namespace: cliext