tetl 0.1.0
Embedded Template Library
|
Go to the source code of this file.
Namespaces | |
namespace | etl |
Functions | |
template<typename InputIt1, typename InputIt2, typename T> | |
constexpr auto | inner_product (InputIt1 first1, InputIt1 last1, InputIt2 first2, T init) -> T |
Computes inner product (i.e. sum of products) or performs ordered map/reduce operation on the range [first1, last1) and the range beginning at first2. | |
template<typename InputIt1, typename InputIt2, typename T, typename BinaryOperation1, typename BinaryOperation2> | |
constexpr auto | inner_product (InputIt1 first1, InputIt1 last1, InputIt2 first2, T init, BinaryOperation1 op1, BinaryOperation2 op2) -> T |