MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / setElementWithRandomData

Function setElementWithRandomData

src/tests/include/blas-random.h:773–778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

771// testDG
772template <typename T>
773static void
774setElementWithRandomData(T *p, int vectorLength, cl_double bound)
775{
776 for(int k=0; k<vectorLength; k++)
777 p[k] = random<T>(bound);
778}
779
780template <typename T>
781static void

Callers 3

doPopulateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected