summaryrefslogtreecommitdiff
path: root/numpy/random
Commit message (Collapse)AuthorAgeFilesLines
...
| | * ENH: Add `__path__` annotations to all sub-packagesBas van Beek2021-07-251-0/+1
| | |
| | * ENH: Add annotations for `<module>.test` objectsBas van Beek2021-07-251-0/+3
| | |
| * | DOC: Fix typo in PCG64 (#19538)david-cortes2021-07-211-2/+2
| |/ | | | | | | | | * DOC: Fix typo in PCG64 * DOC: fix typo in PCG64DXSM
| * Merge pull request #19306 from charris/fix-doc-pdf-buildCharles Harris2021-06-242-2/+2
| |\ | | | | | | DOC: Fix some docstrings that crash pdf generation.
| | * DOC: Fix some docstrings crash pdf generation.Charles Harris2021-06-222-2/+2
| | | | | | | | | | | | | | | The byte string output of numpy.Generator.bytes must have the `\` properly escaped. Also make a small fix to the legacy docstring.
| * | BUG: Correct Cython declarationKevin Sheppard2021-06-241-1/+1
| |/ | | | | | | | | | | Correct return type from double to void closes #19312
| * ENH: manually inline code for performance.Robert Kern2021-05-071-14/+29
| |
| * DOC: more completely describe the implemented variant.Robert Kern2021-05-051-1/+4
| |
| * BUG: Wrong logic for WindowsRobert Kern2021-05-041-1/+0
| |
| * ENH: add the emulated 128-bit math for PCG64DXSMRobert Kern2021-05-041-1/+59
| |
| * ENH: Add PCG64DXSM implementation.Robert Kern2021-05-0411-7/+2388
| |
| * DOC: Improve random.choice() documentationBharat123rox2021-04-182-7/+9
| |
| * DOC: Fix spelling of "reccomended" ("recommended") (#18779)Deepyaman Datta2021-04-151-1/+1
| |
| * Merge pull request #18728 from anthonyhvo12/avo-exceptions-chainingCharles Harris2021-04-121-2/+2
| |\ | | | | | | MAINT: Add exception chaining where appropriate
| | * change to suitable raise from and add line breaks #2Anthony Vo2021-04-061-1/+1
| | |
| | * change to suitable raise from and add line breaksAnthony Vo2021-04-061-1/+1
| | |
| | * Merge branch 'main' of https://github.com/numpy/numpy into ↵Anthony Vo2021-04-0517-259/+1267
| | |\ | | | | | | | | | | | | avo-exceptions-chaining
| | * | chain exceptions when appropriateAnthony Vo2021-04-051-1/+1
| | | |
| * | | BUG: Check out requirements and raise when not satisfiedKevin Sheppard2021-04-072-9/+53
| | |/ | |/| | | | | | | | | | | | | Check that out is C-contiguous when using user-supplied arguments closes #18704
| * | PERF: Use exponentials in place of inversionKevin Sheppard2021-03-225-10/+20
| | | | | | | | | | | | Use exponentials rather than generating exponentials via inversion
| * | MAINT: Add mising type to cdef statementKevin Sheppard2021-03-193-4/+4
| | | | | | | | | | | | | | | Add missing type to cdef statement Small spelling fix
| * | Merge pull request #18438 from seberg/shuffle-objectsCharles Harris2021-03-183-3/+41
| |\ \ | | | | | | | | BUG: Correct shuffling of objects in 1-d array likes
| | * | STY: Fix hanging indentation.Charles Harris2021-03-171-3/+3
| | | |
| | * | STY: Break long line.Charles Harris2021-03-171-1/+3
| | | |
| | * | BUG: Correct shuffling of objects in 1-d array likesSebastian Berg2021-02-223-3/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While introducing the buffer fixed the in-place problem years ago, running valgrind (and masked arrays) pointed out to me that without the additional `...` NumPy will unpack and repack objects leading to slightly incorrect results. MAINT: Warn about shuffle bug instead of fixing it in old random API
| * | | Merge pull request #18635 from bashtage/random-integer-exception-defaultMatti Picus2021-03-182-10/+32
| |\ \ \ | | | | | | | | | | ENH: Improve the exception for default low in Generator.integers
| | * | | ENH: Improve the exception for default low in Generator.integersKevin Sheppard2021-03-172-10/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve the exception when low is 0 in case the single input form was used. closes #14333
| * | | | BUG: Use lop1p to improve numerical precisionKevin Sheppard2021-03-176-34/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use log1p(-x) instead of log(1 - x) Seperate legacy version from current closes #17020
| * | | | BUG: np.random: Use log1p to improve precisionEric Wieser2021-03-171-11/+11
| |/ / / | | | | | | | | | | | | This reduces the number of cases when floating point precision makes the argument to `log` become `0`
| * | | DOC: Consistently use rng as variable name for random generatorsTim Hoffmann2021-03-151-4/+4
| | | |
| * | | Merge pull request #18439 from WarrenWeckesser/random-choice-excCharles Harris2021-03-071-4/+6
| |\ \ \ | | | | | | | | | | MAINT: random: Use 'from exc' when raising a ValueError in choice.
| | * | | MAINT: random: use 'from exc' instead of 'from None'; tweak error messages.Warren Weckesser2021-02-191-7/+7
| | | | |
| | * | | MAINT: random: Use 'from None' when raising a ValueError in choice.Warren Weckesser2021-02-181-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use 'from None' when the ValueError is raised when the first argument to `choice` is not an array and not an integer. Also fix the error message for the ValueError, and add a missing space to two other error messages.
| * | | | Port error to RandomStateKevin Sheppard2021-02-263-2/+23
| | | | |
| * | | | Address commentsKevin Sheppard2021-02-261-9/+9
| | | | |
| * | | | Accept suggestion Kevin Sheppard2021-02-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Use if else. Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * | | | ENH: Improve error message in multinomialKevin Sheppard2021-02-262-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve error message when the sum of pvals is larger than 1 when the input data is an ndarray closes #8317 xref #16732
| * | | | CLN: Move to legacy functionKevin Sheppard2021-02-264-20/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid conditional compilation and move old version to legacy_vonmises Small clean up Additional comments
| * | | | BUG: Prevent RandomState from changingKevin Sheppard2021-02-266-19/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apply vonmises fix only to Generator Add tests for correctness closes #17378 closes #17275
| * | | | Added test for [-np.pi, np.pi] range for the von mises distribution using ↵Raúl Montón Pinillos2021-02-263-0/+9
| | | | | | | | | | | | | | | | | | | | large values of kappa (>1e6)
| * | | | Fixed style and added check for bounds in [-pi,pi] interval.Raúl Montón Pinillos2021-02-261-6/+17
| | | | |
| * | | | Fixed Von Mises distribution for big values of kappa by falling back to a ↵Raúl Montón Pinillos2021-02-261-3/+8
| | | | | | | | | | | | | | | | | | | | normal distribution (which the von mises distribution converges to).
| * | | | Merge pull request #18433 from bashtage/randomstate-typingMatti Picus2021-02-245-130/+824
| |\ \ \ \ | | | | | | | | | | | | ENH: Add typing for RandomState
| | * | | | BUG: Remove incorrect variable nameKevin Sheppard2021-02-241-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | Remove incorrect variable name in randint
| | * | | | CLN: Clean up random typingKevin Sheppard2021-02-242-22/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean unnecessary definitions Fix small typing errors
| | * | | | Use {int_} for int return typesKevin Sheppard2021-02-241-1/+1
| | | | | |
| | * | | | Small fixesKevin Sheppard2021-02-243-7/+4
| | | | | |
| | * | | | BUG: Fix typing bugsKevin Sheppard2021-02-241-1/+1
| | | | | |
| | * | | | ENH: Add tests for RandomStateKevin Sheppard2021-02-241-4/+6
| | | | | |
| | * | | | BUG: Corect typing statements in mtrandKevin Sheppard2021-02-242-27/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring over changes from Generator to RandomState where appropriate Remove attributes not in RandomState