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

Function boxMullerWriteOut128Bytes

src/backend/cuda/kernel/random_engine.hpp:440–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438// Normalized writes without boundary checking
439
440__device__ static void boxMullerWriteOut128Bytes(float *out, const uint &index,
441 const uint &r1, const uint &r2,
442 const uint &r3,
443 const uint &r4) {
444 boxMullerTransform(&out[index], &out[index + blockDim.x],
445 getFloatNegative11(r1), getFloat01(r2));
446 boxMullerTransform(&out[index + 2 * blockDim.x],
447 &out[index + 3 * blockDim.x], getFloatNegative11(r3),
448 getFloat01(r4));
449}
450
451__device__ static void boxMullerWriteOut128Bytes(cfloat *out, const uint &index,
452 const uint &r1, const uint &r2,

Callers 3

normalPhiloxFunction · 0.70
normalThreefryFunction · 0.70
normalMersenneFunction · 0.70

Calls 7

boxMullerTransformFunction · 0.70
getFloatNegative11Function · 0.70
getFloat01Function · 0.70
getDoubleNegative11Function · 0.70
getDouble01Function · 0.70
getHalfNegative11Function · 0.70
getHalf01Function · 0.70

Tested by

no test coverage detected