MCPcopy Index your code
hub / github.com/numpy/numpy / test_advance_large

Method test_advance_large

numpy/random/tests/test_direct.py:500–509  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

498 assert val_big == val_pos
499
500 def test_advance_large(self):
501 rs = Generator(self.bit_generator(38219308213743))
502 pcg = rs.bit_generator
503 state = pcg.state
504 initial_state = 287608843259529770491897792873167516365
505 assert state["state"]["state"] == initial_state
506 pcg.advance(sum(2**i for i in (96, 64, 32, 16, 8, 4, 2, 1)))
507 state = pcg.state["state"]
508 advanced_state = 277778083536782149546677086420637664879
509 assert state["state"] == advanced_state
510
511
512class TestMT19937(Base):

Callers

nothing calls this directly

Calls 2

sumFunction · 0.85
advanceMethod · 0.80

Tested by

no test coverage detected