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

Function state_write

src/backend/cpu/kernel/random_engine_mersenne.hpp:96–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void state_write(uint* const state, const uint* const l_state) {
97 for (int i = 0; i < N; ++i) { state[i] = l_state[STATE_SIZE - N + i]; }
98}
99
100void initMersenneState(uint* const state, const uint* const tbl,
101 const uintl seed) {

Callers 2

uniformDistributionMTFunction · 0.70
normalDistributionMTFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected