module documentation

Undocumented

Class TestBinomial Undocumented
Class TestBroadcast Undocumented
Class TestMultinomial Undocumented
Class TestRandint Undocumented
Class TestRandomDist Undocumented
Class TestSeed Undocumented
Class TestSetState Undocumented
Class TestSingleEltArrayInput Undocumented
Class TestThread Undocumented
Function assert_mt19937_state_equal Undocumented
Function int_func Undocumented
Function restore_singleton_bitgen Ensures that the singleton bitgen is restored after a test
Function test_broadcast_size_error Undocumented
Function test_hot_swap Undocumented
Function test_integer_dtype Undocumented
Function test_integer_repeat Undocumented
Function test_randomstate_ctor_old_style_pickle Undocumented
Function test_seed_alt_bit_gen Undocumented
Function test_state_error_alt_bit_gen Undocumented
Function test_swap_worked Undocumented
Function test_swapped_singleton_against_direct Undocumented
Constant INT_FUNC_HASHES Undocumented
Constant INT_FUNCS Undocumented
def assert_mt19937_state_equal(a, b): (source)

Undocumented

@pytest.fixture(scope='module', params=INT_FUNCS)
def int_func(request): (source)

Undocumented

@pytest.fixture
def restore_singleton_bitgen(): (source)

Ensures that the singleton bitgen is restored after a test

def test_broadcast_size_error(): (source)

Undocumented

def test_hot_swap(restore_singleton_bitgen): (source)

Undocumented

def test_integer_dtype(int_func): (source)

Undocumented

def test_integer_repeat(int_func): (source)

Undocumented

def test_randomstate_ctor_old_style_pickle(): (source)

Undocumented

def test_seed_alt_bit_gen(restore_singleton_bitgen): (source)

Undocumented

def test_state_error_alt_bit_gen(restore_singleton_bitgen): (source)

Undocumented

def test_swap_worked(restore_singleton_bitgen): (source)

Undocumented

def test_swapped_singleton_against_direct(restore_singleton_bitgen): (source)

Undocumented

INT_FUNC_HASHES: dict[str, str] = (source)

Undocumented

Value
{'binomial': '2fbead005fc63942decb5326d36a1f32fe2c9d32c904ee61e46866b88447c263',
 'logseries': '23ead5dcde35d4cfd4ef2c105e4c3d43304b45dc1b1444b7823b9ee4fa144ebb'
,
 'geometric': '0d764db64f5c3bad48c8c33551c13b4d07a1e7b470f77629bef6c985cac76fcf'
,
 'hypergeometric': '7b59bf2f1691626c5815cdcd9a49e1dd68697251d4521575219e4d2a1b8b
2c67',
...
INT_FUNCS = (source)

Undocumented

Value
{'binomial': (100.0, 0.6),
 'geometric': (0.5),
 'hypergeometric': (20, 20, 10),
 'logseries': (0.5),
 'multinomial': (20, np.ones(6)/6.0),
 'negative_binomial': (100, 0.5),
 'poisson': (10.0),
...