Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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()).
28
template <typename T>
29
T tsum(const array_view_crit<T>& arr)
30
{
31
T s = 0;
32
for (auto& v : arr)
33
s += v;
34
return s;
35
}
36
template <typename T>
37
T tsum(const array_view<T>& arr)
38
{
Callers
2
sum_crit
Function · 0.85
sum
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected