summaryrefslogtreecommitdiff
path: root/numpy/random/tests/test_randomstate.py
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Remove implicit inheritance from object class (#15236)Jon Dufresne2020-01-051-9/+9
| | | | | | | Inheriting from object was necessary for Python 2 compatibility to use new-style classes. In Python 3, this is unnecessary as there are no old-style classes. Dropping the object is more idiomatic Python.
* MAINT: Remove uses of scalar aliasesEric Wieser2019-11-131-3/+3
| | | | Relates to gh-6103
* API: make BitGenerators privatemattip2019-10-111-1/+2
|
* BUG: Fix segfault in `random.permutation(x)` when x is a string. (#14241)Maxwell Aladago2019-08-221-0/+15
| | | | | | | | | | | | | | | | | | | | | | * fixing segfault error in np.random.permutation(x) where x is str * removed whitespace * changing error type to ValueError * changing error type to ValueError * changing error type to ValueError * tests * changed error to IndexError for backward compatibility with numpy 1.16 * fixes numpy.randomstate.permutation segfault too * Rolled back to ValueError for Generator.permutation() for all 0-dimensional * fixes refuige erro and rolls backs to AxisError
* ENH: use SeedSequence to generate entropy for seedingmattip2019-06-261-5/+4
|
* MAINT: remove xoshiro* BitGeneratorsmattip2019-06-261-3/+3
|
* BUG: Fix random.choice when probability is not C contiguous (#13716)jeremiedbb2019-06-061-0/+29
| | | * test, fix random.choice sum for non-contiguous
* MAINT: Misc. typo fixes (#13664)luzpaz2019-05-311-1/+1
| | | | | | * DOC, MAINT: Misc. typo fixes Found via `codespell`
* MAINT: fix for dtype specificationmattip2019-05-281-2/+2
|
* ENH: Split poisson_lam_maxKevin Sheppard2019-05-231-1/+1
| | | | | | Use type-dependent poisson lam max Make private Fix backward compat issue in loggam
* BUG: Ensure integer-type stream on 32bitKevin Sheppard2019-05-201-1/+60
| | | | | | Ensure integer type is stream compatible on 32 bit Fix incorrect clause end Add integer-generator tests that check long streams
* MAINT: Implement API changes for randomgen-derived codemattip2019-05-201-5/+5
| | | | | | | | | | | | | | | | | | | | | remove numpy.random.gen, BRNG.generator, pcg*, rand, randn remove use_mask and Lemire's method, fix benchmarks for PCG removal convert brng to bitgen (in C) and bit_generator (in python) convert base R{NG,andom.*} to BitGenerator, fix last commit randint -> integers, remove rand, randn, random_integers RandomGenerator -> Generator, more "basic RNG" -> BitGenerator random_sample -> random, jump -> jumped, resync with randomgen Remove derived code from entropy Port over changes accepted in upstream to protect log(0.0) where relevant fix doctests for jumped, better document choice Remove Python 2.7 shims Use NPY_INLINE to simplify Fix performance.py to work Renam directory brng to bit_generators Fix examples wiht new directory structure Clarify relationship to historical RandomState Remove references to .generator Rename xoshiro256/512starstar
* ENH: Add closed generator to randintKevin Sheppard2019-05-201-1/+0
| | | | Add closed option to randint to simplify some cases
* BUG: Cast high to Python int to avoid overflowKevin Sheppard2019-05-201-0/+8
| | | | Case high to a Python int to avoid overflow from NumPy types
* ENH: Extend multinomial and fix zipfKevin Sheppard2019-05-201-0/+4
| | | | | | Extend multinomial to allow broadcasting Fix zipf changes missed in NumPy Enable 0 as valid input for hypergeometric
* BENCH: convert bencmarks to asv formatmattip2019-05-201-0/+1853
remove files that were part of the origal repo rework randomgen docs to integrate with numpy and fix some links remove convenience functions, require explicit call to gen.brng move code out of numpy.random.randomgen into numpy.random