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

Method setup_class

numpy/random/tests/test_smoke.py:779–786  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

777class TestPCG64DXSM(RNG):
778 @classmethod
779 def setup_class(cls):
780 cls.bit_generator = PCG64DXSM
781 cls.advance = 2**63 + 2**31 + 2**15 + 1
782 cls.seed = [12345]
783 cls.rg = Generator(cls.bit_generator(*cls.seed))
784 cls.initial_state = cls.rg.bit_generator.state
785 cls.seed_vector_bits = 64
786 cls._extra_setup()
787
788
789class TestDefaultRNG(RNG):

Callers

nothing calls this directly

Calls 1

_extra_setupMethod · 0.80

Tested by

no test coverage detected