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

Function state_read

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

Source from the content-addressed store, hash-verified

90}
91
92void state_read(uint* const l_state, const uint* const state) {
93 for (int i = 0; i < N; ++i) { l_state[STATE_SIZE - N + i] = state[i]; }
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]; }

Callers 2

uniformDistributionMTFunction · 0.70
normalDistributionMTFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected