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

Function sum_array_driver

dlib/test/bsp.cpp:108–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106// ----------------------------------------------------------------------------------------
107
108 void sum_array_driver (
109 bsp_context& obj,
110 const std::vector<int>& v,
111 int& result
112 )
113 {
114 obj.broadcast(v);
115
116 result = 0;
117 int val;
118 while(obj.try_receive(val))
119 result += val;
120 }
121
122 void sum_array_other (
123 bsp_context& obj

Callers

nothing calls this directly

Calls 2

try_receiveMethod · 0.80
broadcastMethod · 0.45

Tested by

no test coverage detected