scicpp::nansum

Defined in header <scicpp/core.hpp>

Sum of array elements excluding NaNs.


template<typename T, std::size_t N>
T nansum(const std::array<T, N> &f)

template<typename T>
T nansum(const std::vector<T> &f)

See also
Scipy documentation