summaryrefslogtreecommitdiff
path: root/numpy/random/_common.pyx
Commit message (Collapse)AuthorAgeFilesLines
* Also annotate the implementation of the kahan_sum() function, not just the ↵Stefan Behnel2023-05-041-1/+1
| | | | declaration.
* BUG: Fix boundschecking for `random.logseries`Sebastian Berg2022-10-181-0/+6
| | | | | | | | Logseries previously did not enforce bounds to be strictly exclusive for the upper bound, where it leads to incorrect behavior. The NOT_NAN check is removed, since it was never used: The current bounded version always excludes NaNs.
* MAINT, DOC: discard repeated wordsDimitri Papadopoulos2022-01-131-1/+1
|
* Merge pull request #20643 from bashtage/experiment-array-cons-checkSebastian Berg2022-01-101-3/+19
|\ | | | | PERF: Optimize array check for bounded 0,1 values
| * PERF: Optimize array check for bounded 0,1 valuesKevin Sheppard2021-12-221-3/+20
| | | | | | | | Optimize frequent check for probabilities when they are doubles
* | PERF: Speed up check_constraint checksKevin Sheppard2021-12-221-2/+3
|/ | | | | | Remove python api calls from check_constraint xref #20636
* BUG: Protect kahan_sum from empty arraysKevin Sheppard2021-12-171-0/+15
| | | | Return a default value when passed an empty array
* 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-051-2/+2
| |\ | | | | | | | | | avo-exceptions-chaining
| * | chain exceptions when appropriateAnthony Vo2021-04-051-1/+1
| | |
* | | BUG: Check out requirements and raise when not satisfiedKevin Sheppard2021-04-071-9/+30
| |/ |/| | | | | | | | | Check that out is C-contiguous when using user-supplied arguments closes #18704
* | MAINT: Add mising type to cdef statementKevin Sheppard2021-03-191-2/+2
|/ | | | | Add missing type to cdef statement Small spelling fix
* MAINT: Remove unicode markersKevin Sheppard2021-02-111-2/+2
| | | | Remove unnecessary unicode markers (u"")
* BUG: Fix cython warning in random/_common.pyx.Charles Harris2020-06-071-1/+2
| | | | | Fix for #16508. Cython wants every pointer declaration to be on a separate line.
* BUG: Correct broadcasting when size is not NoneKevin Sheppard2020-06-051-0/+29
| | | | | | | Broadcastable size with inputs does not produce an error when size produces a smaller output array than the broadcast input shape. Patch checks that the output shape matches the outer shape of the broadcast fo all inputs and the size when given.
* API: refactor function names in distribution.{h,c}, refactor float_fillmattip2019-10-111-4/+5
|
* API: rename common, bounded_integers -> _common, _bounded_integers; cleanupmattip2019-10-111-0/+976