summaryrefslogtreecommitdiff
path: root/numpy/random
Commit message (Collapse)AuthorAgeFilesLines
* BLD: remove unused functions, rearrange headers (from CC=clang) (#14534)Matti Picus2019-09-264-6/+5
| | | | | * BUILD: remove unused functions, rearrange headers (from CC=clang) * MAINT: check enum at API call, not in provate function
* Merge pull request #14573 from rgommers/remove-info-filesMatti Picus2019-09-251-5/+0
|\ | | | | DOC: update submodule docstrings, remove info.py files
| * MAINT: remove stray numpy/random/info.py fileRalf Gommers2019-09-221-5/+0
| |
* | MAINT: don't install partial numpy.random C/Cython API.Ralf Gommers2019-09-214-4/+22
|/ | | | | | | | | See https://mail.python.org/pipermail/numpy-discussion/2019-September/080088.html for discussion. We need to do this right, and add tests and docs. All this PR does is not install bitgen.h, common.pxd and bit_generator.pxd (they're still shipped in the sdist, that is needed). Should be backported to 1.17.x
* Merge pull request #14531 from WarrenWeckesser/binomial-regressionMatti Picus2019-09-197-11/+75
|\ | | | | BUG: random: Create a legacy implementation of random.binomial.
| * BUG: random: Create a legacy implementation of random.binomial.Warren Weckesser2019-09-167-11/+75
| | | | | | | | | | | | | | | | | | Create a legacy implementation of the random_binomial method of RandomState that does not include the "short-circuit" check for n == 0 or p == 0. This ensures that the stream of variates is consistent with the behavior in 1.16. Closes gh-14522.
* | BUG: Avoid ctypes in GeneratorsKevin Sheppard2019-09-182-4/+4
|/ | | | | | Avoid unnecessary use of ctypes in Generators closes #14131
* Merge pull request #14523 from WarrenWeckesser/random-dup-protosMatti Picus2019-09-161-5/+0
|\ | | | | MAINT: random: Remove a few duplicated C function prototypes.
| * MAINT: random: Remove a few duplicated C function prototypes.Warren Weckesser2019-09-151-5/+0
| |
* | Merge pull request #13829 from kianasun/add-permutation-axisMatti Picus2019-09-162-14/+79
|\ \ | |/ |/| ENH: Add axis argument to random.permutation and random.shuffle
| * ENH: Improve permutation and shuffle functions on a given axisKexuan Sun2019-09-142-14/+79
| |
* | Merge pull request #14498 from mattip/random-namespaceRalf Gommers2019-09-157-320/+5
|\ \ | | | | | | MAINT: remove the entropy c-extension module
| * | MAINT: remove the entropy c-extension modulemattip2019-09-137-320/+5
| |/
* | BUG: Fix randint when range is 2**32Kevin Sheppard2019-09-142-2/+13
|/ | | | | | Fix randint to use 32-bit path when range is exactly 2**32 closes #14189
* BUG: random: Fix the mistaken duplicate line. Fixes gh-14557.Warren Weckesser2019-09-121-1/+1
|
* MAINT: random: Revert gh-14458.Warren Weckesser2019-09-121-3/+3
|
* BUG: random.hypergeometic assumes npy_long is npy_int64, hung ppc64Allan Haldane2019-09-091-3/+3
| | | | Fixes #14457
* DOC: fix doc linking, was referencing private submodules.Ralf Gommers2019-08-251-2/+2
| | | | Closes gh-14359
* BUG: Fix segfault in `random.permutation(x)` when x is a string. (#14241)Maxwell Aladago2019-08-224-2/+40
| | | | | | | | | | | | | | | | | | | | | | * 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
* Merge pull request #14298 from 5ghz/cross_compileCharles Harris2019-08-201-2/+2
|\ | | | | BUG: Fix numpy.random bug in platform detection
| * Fix bug in platform detectionVladimir Pershin2019-08-161-2/+2
| |
* | MAINT: random: Change type of SeedSequence.n_children_spawned to uint32_t.Warren Weckesser2019-08-202-1/+3
| |
* | MAINT: random: Fix import in example for _coerce_to_uint32_array.Warren Weckesser2019-08-201-1/+1
| |
* | MAINT: random: Match type of SeedSequence.pool_size to DEFAULT_POOL_SIZE.Warren Weckesser2019-08-201-2/+2
| | | | | | | | | | | | | | | | | | | | Fixes this compiler warning: gcc: numpy/random/bit_generator.c numpy/random/bit_generator.c:4889:41: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare] __pyx_t_6 = ((__pyx_v_self->pool_size != __pyx_v_5numpy_6random_13bit_generator_DEFAULT_POOL_SIZE) != 0); ~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated
* | MAINT: Improve error message dtype appearancealeju2019-08-131-1/+1
| | | | | | | | | | | | This changes the string conversion of an expected dtype in an error message from e.g. "<class 'numpy.float64'>" to "float64".
* | BUG: Fix formatting error in exception messagealeju2019-08-131-1/+1
|/ | | | | | | | This commit fixes a simple formatting error in the generation of an exception message. The message is supposed to contain the expected vs. the actual dtype, but instead contained two times the expected dtype.
* Merge pull request #14141 from KmolYuan/random_freeze_analysisCharles Harris2019-08-081-1/+6
|\ | | | | ENH: add c-imported modules for freeze analysis in np.random
| * ENH: add c-imported modules for freeze analysis in np.randomYuan2019-07-281-1/+6
| |
* | Fixed default BitGenerator nameGiuseppe Cuccu2019-08-061-3/+3
|/
* Merge pull request #13812 from thrasibule/fast_floydCharles Harris2019-07-132-30/+65
|\ | | | | MAINT: Rewrite Floyd algorithm
| * test shuffle keywordGuillaume Horel2019-07-111-0/+3
| |
| * add shuffle keywordGuillaume Horel2019-07-111-4/+11
| |
| * fix testsGuillaume Horel2019-07-111-2/+2
| |
| * nogilGuillaume Horel2019-07-111-1/+1
| |
| * extra shuffle at the end and tweak heuristicGuillaume Horel2019-07-111-1/+2
| |
| * faster shuffleGuillaume Horel2019-07-111-8/+27
| |
| * fix testsGuillaume Horel2019-07-111-1/+1
| |
| * prevent warningsGuillaume Horel2019-07-111-4/+4
| |
| * fix testsGuillaume Horel2019-07-111-2/+2
| |
| * no wraparoundGuillaume Horel2019-07-111-1/+1
| |
| * use typed memoryview instead of C arrayGuillaume Horel2019-07-111-8/+3
| |
| * Rewrite Floyd algorithmGuillaume Horel2019-07-111-17/+27
| | | | | | | | | | - use a simple hash table with linear probing - adjust heuristic
* | DOC: emphasize random API changesmattip2019-07-091-8/+2
|/
* ENH: Rename tests for default_rngRobert Kern2019-06-292-2/+2
|
* ENH: Rename default_gen to default_rngRobert Kern2019-06-294-61/+61
|
* DOC: Document the precise PCG variant.Robert Kern2019-06-282-8/+13
| | | | Also, turn some of the reference URLs into links.
* BUG: Ensure consistent interpretation of uint64 states. (#13861)Robert Kern2019-06-284-4/+25
| | | * BUG: test, fix for big-endian systems
* ENH: np.random.default_gen() (#13840)Robert Kern2019-06-2810-203/+303
| | | * ENH: Rename seed_seq argument to seed and replace Generator() with default_gen()
* BUG: do not force emulation of 128-bit arithmetic.Robert Kern2019-06-273-12/+22
|
* Merge pull request #13849 from rkern/doc/random-cleanupsCharles Harris2019-06-275-35/+54
|\ | | | | DOC: np.random documentation cleanup and expansion.