Skip to content

function sum(const E1 &) reducing

template <input_expression E1, typename T = expression_value_type<E1>>
KFR_FUNCTION T sum(const E1& x)

Returns the sum of all the elements in x.

Defined at base/reduce.hpp:258