MCPcopy Create free account
hub / github.com/davisking/dlib / tsum

Function tsum

dlib/java/swig_api.h:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27// assign_crit()).
28template <typename T>
29T tsum(const array_view_crit<T>& arr)
30{
31 T s = 0;
32 for (auto& v : arr)
33 s += v;
34 return s;
35}
36template <typename T>
37T tsum(const array_view<T>& arr)
38{

Callers 2

sum_critFunction · 0.85
sumFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected