num::kernel::sum¶ Defined in header <kernel/vector.hpp> template <std::floating_point T> T sum(const T *x, idx n) noexcept; Sum the entries of a vector: \(\sum_i x_i\).