MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / randu

Function randu

src/api/cpp/random.cpp:64–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62af_random_engine randomEngine::get() const { return engine; }
63
64array randu(const dim4 &dims, const dtype ty, randomEngine &r) {
65 af_array out;
66 AF_THROW(af_random_uniform(&out, dims.ndims(), dims.get(), ty, r.get()));
67 return array(out);
68}
69
70array randn(const dim4 &dims, const dtype ty, randomEngine &r) {
71 af_array out;

Callers 15

TESTFunction · 0.85
TESTFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
choleskyTesterFunction · 0.85
replaceTestFunction · 0.85
replaceScalarTestFunction · 0.85
TESTFunction · 0.85
replace.cppFile · 0.85
randuDimsTestFunction · 0.85

Calls 6

af_random_uniformFunction · 0.50
arrayClass · 0.50
af_randuFunction · 0.50
dim4Class · 0.50
ndimsMethod · 0.45
getMethod · 0.45

Tested by 4

TESTFunction · 0.68
deathTestFunction · 0.68
Test_flip_1DFunction · 0.68
toTempFormatFunction · 0.68