Defined in header <scicpp/core.hpp>
Product of array elements.
These variants accept a predicate to specify values that must be filtered in.
These functions return a pair with first the sum result, and then the number of elements used to compute the sum.
InputIt
, class Predicate
>prod
(InputIt first, InputIt last, Predicate filter)¶