[#absl-c_inner_product-03] = xref:absl.adoc[absl]::c_inner_product :relfileprefix: ../ :mrdocs: Container‐based version of the <numeric> `std::inner_product()` function to compute the cumulative inner product of container element pairs. == Synopsis Declared in `<absl/algorithm/container.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename Sequence1, typename Sequence2, typename T> constexpr std::decay_t<T> c_inner_product( Sequence1 const& factors1, Sequence2 const& factors2, T&& sum); ---- == Description Note: Due to a language technicality this function has return type std::decay_t<T>. As a user of this function you can casually read this as "returns T by value" and assume it does the right thing. == Return Value The computed inner product. == Parameters [cols="1,4"] |=== | Name| Description | *factors1* | The first container of factors. | *factors2* | The second container of factors. | *sum* | The initial value of the accumulation. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#