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

Method test_normal_zig_floats

numpy/random/tests/test_smoke.py:524–535  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

522 assert_(comp_state(rg.bit_generator.state, rg2.bit_generator.state))
523
524 def test_normal_zig_floats(self):
525 rg = Generator(self.bit_generator())
526 warmup(rg)
527 state = rg.bit_generator.state
528 r1 = rg.standard_normal(11, dtype=np.float32)
529 rg2 = Generator(self.bit_generator())
530 warmup(rg2)
531 rg2.bit_generator.state = state
532 r2 = rg2.standard_normal(11, dtype=np.float32)
533 assert_array_equal(r1, r2)
534 assert_equal(r1.dtype, np.float32)
535 assert_(comp_state(rg.bit_generator.state, rg2.bit_generator.state))
536
537 def test_output_fill(self):
538 rg = self.rg

Callers

nothing calls this directly

Calls 5

assert_array_equalFunction · 0.90
assert_equalFunction · 0.90
assert_Function · 0.90
warmupFunction · 0.85
comp_stateFunction · 0.85

Tested by

no test coverage detected