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

Function uniformDistribution_

src/api/c/random.cpp:94–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92namespace {
93template<typename T>
94inline af_array uniformDistribution_(const dim4 &dims, RandomEngine *e) {
95 if (e->type == AF_RANDOM_ENGINE_MERSENNE_GP11213) {
96 return getHandle(uniformDistribution<T>(dims, e->pos, e->sh1, e->sh2,
97 e->mask, e->recursion_table,
98 e->temper_table, e->state));
99 } else {
100 return getHandle(
101 uniformDistribution<T>(dims, e->type, *(e->seed), *(e->counter)));
102 }
103}
104
105template<typename T>
106inline af_array normalDistribution_(const dim4 &dims, RandomEngine *e) {

Callers

nothing calls this directly

Calls 1

getHandleFunction · 0.70

Tested by

no test coverage detected