Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | BLD: remove unused functions, rearrange headers (from CC=clang) (#14534) | Matti Picus | 2019-09-26 | 4 | -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-files | Matti Picus | 2019-09-25 | 1 | -5/+0 |
|\ | | | | | DOC: update submodule docstrings, remove info.py files | ||||
| * | MAINT: remove stray numpy/random/info.py file | Ralf Gommers | 2019-09-22 | 1 | -5/+0 |
| | | |||||
* | | MAINT: don't install partial numpy.random C/Cython API. | Ralf Gommers | 2019-09-21 | 4 | -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-regression | Matti Picus | 2019-09-19 | 7 | -11/+75 |
|\ | | | | | BUG: random: Create a legacy implementation of random.binomial. | ||||
| * | BUG: random: Create a legacy implementation of random.binomial. | Warren Weckesser | 2019-09-16 | 7 | -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 Generators | Kevin Sheppard | 2019-09-18 | 2 | -4/+4 |
|/ | | | | | | Avoid unnecessary use of ctypes in Generators closes #14131 | ||||
* | Merge pull request #14523 from WarrenWeckesser/random-dup-protos | Matti Picus | 2019-09-16 | 1 | -5/+0 |
|\ | | | | | MAINT: random: Remove a few duplicated C function prototypes. | ||||
| * | MAINT: random: Remove a few duplicated C function prototypes. | Warren Weckesser | 2019-09-15 | 1 | -5/+0 |
| | | |||||
* | | Merge pull request #13829 from kianasun/add-permutation-axis | Matti Picus | 2019-09-16 | 2 | -14/+79 |
|\ \ | |/ |/| | ENH: Add axis argument to random.permutation and random.shuffle | ||||
| * | ENH: Improve permutation and shuffle functions on a given axis | Kexuan Sun | 2019-09-14 | 2 | -14/+79 |
| | | |||||
* | | Merge pull request #14498 from mattip/random-namespace | Ralf Gommers | 2019-09-15 | 7 | -320/+5 |
|\ \ | | | | | | | MAINT: remove the entropy c-extension module | ||||
| * | | MAINT: remove the entropy c-extension module | mattip | 2019-09-13 | 7 | -320/+5 |
| |/ | |||||
* | | BUG: Fix randint when range is 2**32 | Kevin Sheppard | 2019-09-14 | 2 | -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 Weckesser | 2019-09-12 | 1 | -1/+1 |
| | |||||
* | MAINT: random: Revert gh-14458. | Warren Weckesser | 2019-09-12 | 1 | -3/+3 |
| | |||||
* | BUG: random.hypergeometic assumes npy_long is npy_int64, hung ppc64 | Allan Haldane | 2019-09-09 | 1 | -3/+3 |
| | | | | Fixes #14457 | ||||
* | DOC: fix doc linking, was referencing private submodules. | Ralf Gommers | 2019-08-25 | 1 | -2/+2 |
| | | | | Closes gh-14359 | ||||
* | BUG: Fix segfault in `random.permutation(x)` when x is a string. (#14241) | Maxwell Aladago | 2019-08-22 | 4 | -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_compile | Charles Harris | 2019-08-20 | 1 | -2/+2 |
|\ | | | | | BUG: Fix numpy.random bug in platform detection | ||||
| * | Fix bug in platform detection | Vladimir Pershin | 2019-08-16 | 1 | -2/+2 |
| | | |||||
* | | MAINT: random: Change type of SeedSequence.n_children_spawned to uint32_t. | Warren Weckesser | 2019-08-20 | 2 | -1/+3 |
| | | |||||
* | | MAINT: random: Fix import in example for _coerce_to_uint32_array. | Warren Weckesser | 2019-08-20 | 1 | -1/+1 |
| | | |||||
* | | MAINT: random: Match type of SeedSequence.pool_size to DEFAULT_POOL_SIZE. | Warren Weckesser | 2019-08-20 | 1 | -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 appearance | aleju | 2019-08-13 | 1 | -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 message | aleju | 2019-08-13 | 1 | -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_analysis | Charles Harris | 2019-08-08 | 1 | -1/+6 |
|\ | | | | | ENH: add c-imported modules for freeze analysis in np.random | ||||
| * | ENH: add c-imported modules for freeze analysis in np.random | Yuan | 2019-07-28 | 1 | -1/+6 |
| | | |||||
* | | Fixed default BitGenerator name | Giuseppe Cuccu | 2019-08-06 | 1 | -3/+3 |
|/ | |||||
* | Merge pull request #13812 from thrasibule/fast_floyd | Charles Harris | 2019-07-13 | 2 | -30/+65 |
|\ | | | | | MAINT: Rewrite Floyd algorithm | ||||
| * | test shuffle keyword | Guillaume Horel | 2019-07-11 | 1 | -0/+3 |
| | | |||||
| * | add shuffle keyword | Guillaume Horel | 2019-07-11 | 1 | -4/+11 |
| | | |||||
| * | fix tests | Guillaume Horel | 2019-07-11 | 1 | -2/+2 |
| | | |||||
| * | nogil | Guillaume Horel | 2019-07-11 | 1 | -1/+1 |
| | | |||||
| * | extra shuffle at the end and tweak heuristic | Guillaume Horel | 2019-07-11 | 1 | -1/+2 |
| | | |||||
| * | faster shuffle | Guillaume Horel | 2019-07-11 | 1 | -8/+27 |
| | | |||||
| * | fix tests | Guillaume Horel | 2019-07-11 | 1 | -1/+1 |
| | | |||||
| * | prevent warnings | Guillaume Horel | 2019-07-11 | 1 | -4/+4 |
| | | |||||
| * | fix tests | Guillaume Horel | 2019-07-11 | 1 | -2/+2 |
| | | |||||
| * | no wraparound | Guillaume Horel | 2019-07-11 | 1 | -1/+1 |
| | | |||||
| * | use typed memoryview instead of C array | Guillaume Horel | 2019-07-11 | 1 | -8/+3 |
| | | |||||
| * | Rewrite Floyd algorithm | Guillaume Horel | 2019-07-11 | 1 | -17/+27 |
| | | | | | | | | | | - use a simple hash table with linear probing - adjust heuristic | ||||
* | | DOC: emphasize random API changes | mattip | 2019-07-09 | 1 | -8/+2 |
|/ | |||||
* | ENH: Rename tests for default_rng | Robert Kern | 2019-06-29 | 2 | -2/+2 |
| | |||||
* | ENH: Rename default_gen to default_rng | Robert Kern | 2019-06-29 | 4 | -61/+61 |
| | |||||
* | DOC: Document the precise PCG variant. | Robert Kern | 2019-06-28 | 2 | -8/+13 |
| | | | | Also, turn some of the reference URLs into links. | ||||
* | BUG: Ensure consistent interpretation of uint64 states. (#13861) | Robert Kern | 2019-06-28 | 4 | -4/+25 |
| | | | * BUG: test, fix for big-endian systems | ||||
* | ENH: np.random.default_gen() (#13840) | Robert Kern | 2019-06-28 | 10 | -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 Kern | 2019-06-27 | 3 | -12/+22 |
| | |||||
* | Merge pull request #13849 from rkern/doc/random-cleanups | Charles Harris | 2019-06-27 | 5 | -35/+54 |
|\ | | | | | DOC: np.random documentation cleanup and expansion. |