Defined in header <scicpp/core.hpp>
Sum 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
>sum
(InputIt first, InputIt last, Predicate filter)¶