Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_CASE
Function · 0.80
BOOST_AUTO_TEST_CASE
Function · 0.80
Calls
2
accumulate
Function · 0.85
T
Class · 0.50
Tested by
2
BOOST_AUTO_TEST_CASE
Function · 0.64
BOOST_AUTO_TEST_CASE
Function · 0.64