MCPcopy Create free account
hub / github.com/boostorg/compute / sum

Method sum

include/boost/compute/container/valarray.hpp:233–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231 }
232
233 T sum() const
234 {
235 return boost::compute::accumulate(begin(), end(), T(0));
236 }
237
238 template<class UnaryFunction>
239 valarray<T> apply(UnaryFunction function) const

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 2

accumulateFunction · 0.85
TClass · 0.50

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64