MCPcopy Create free account
hub / github.com/numpy/numpy / copy_state

Function copy_state

numpy/random/src/mt19937/mt19937-jump.c:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13void copy_state(mt19937_state *target_state, mt19937_state *state) {
14 int i;
15
16 for (i = 0; i < N; i++)
17 target_state->key[i] = state->key[i];
18
19 target_state->pos = state->pos;
20}
21
22/* next state generating function */
23void gen_next(mt19937_state *state) {

Callers 1

horner1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected