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

Function sum_array_other

dlib/test/bsp.cpp:122–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 }
121
122 void sum_array_other (
123 bsp_context& obj
124 )
125 {
126 std::vector<int> v;
127 obj.receive(v);
128
129 int sum = 0;
130 for (unsigned long i = 0; i < v.size(); ++i)
131 sum += v[i];
132
133 obj.send(sum, 0);
134
135
136 }
137
138
139 void dotest1()

Callers

nothing calls this directly

Calls 3

receiveMethod · 0.45
sizeMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected