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