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

Function normalDistribution_

src/api/c/random.cpp:106–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105template<typename T>
106inline af_array normalDistribution_(const dim4 &dims, RandomEngine *e) {
107 if (e->type == AF_RANDOM_ENGINE_MERSENNE_GP11213) {
108 return getHandle(normalDistribution<T>(dims, e->pos, e->sh1, e->sh2,
109 e->mask, e->recursion_table,
110 e->temper_table, e->state));
111 } else {
112 return getHandle(
113 normalDistribution<T>(dims, e->type, *(e->seed), *(e->counter)));
114 }
115}
116
117void validateRandomType(const af_random_engine_type type) {
118 if ((type != AF_RANDOM_ENGINE_PHILOX_4X32_10) &&

Callers

nothing calls this directly

Calls 1

getHandleFunction · 0.70

Tested by

no test coverage detected