num::sum¶ Defined in header <container/reduce.hpp> real sum(const vec<real> &x); Sum the entries of a vector: \(\sum_i x_i\).