Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RobTillaart/Arduino
/ sum
Method
sum
libraries/SparseArray/SparseArray.cpp:55–63 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
53
54
55
float SparseArray::sum()
56
{
57
float _sum = 0;
58
for (uint16_t i = 0; i < _count; i++)
59
{
60
_sum += _value[i];
61
}
62
return _sum;
63
}
64
65
66
bool SparseArray::set(uint16_t x, float value)
Callers
1
unittest
Function · 0.45
Calls
no outgoing calls
Tested by
1
unittest
Function · 0.36