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

Function normalDistributionCBRNG

src/backend/cpu/kernel/random_engine.hpp:409–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407
408template<typename T>
409void normalDistributionCBRNG(T *out, size_t elements,
410 af_random_engine_type type, const uintl seed,
411 uintl counter) {
412 switch (type) {
413 case AF_RANDOM_ENGINE_PHILOX_4X32_10:
414 philoxNormal(out, elements, seed, counter);
415 break;
416 case AF_RANDOM_ENGINE_THREEFRY_2X32_16:
417 threefryNormal(out, elements, seed, counter);
418 break;
419 default:
420 AF_ERROR("Random Engine Type Not Supported", AF_ERR_NOT_SUPPORTED);
421 }
422}
423
424} // namespace kernel
425} // namespace cpu

Callers

nothing calls this directly

Calls 2

philoxNormalFunction · 0.85
threefryNormalFunction · 0.85

Tested by

no test coverage detected