MCPcopy
hub / github.com/numpy/numpy / test_gaussian_reset

Method test_gaussian_reset

numpy/random/tests/test_randomstate.py:209–215  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

207 assert_(np.all(old == new))
208
209 def test_gaussian_reset(self):
210 # Make sure the cached every-other-Gaussian is reset.
211 random_state, state = self._create_state()
212 old = random_state.standard_normal(size=3)
213 random_state.set_state(state)
214 new = random_state.standard_normal(size=3)
215 assert_(np.all(old == new))
216
217 def test_gaussian_reset_in_media_res(self):
218 # When the state is saved with a cached Gaussian, make sure the

Callers

nothing calls this directly

Calls 3

_create_stateMethod · 0.95
assert_Function · 0.90
allMethod · 0.45

Tested by

no test coverage detected