MCPcopy Create free account
hub / github.com/boostorg/compute / rand_int

Function rand_int

perf/perf_accumulate.cpp:27–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace compute = boost::compute;
26
27int rand_int()
28{
29 return static_cast<int>((rand() / double(RAND_MAX)) * 25.0);
30}
31
32template<class T>
33double perf_accumulate(const compute::vector<T>& data,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected