summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | 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
| * | | | TST: Add tests for dtype and outKevin Sheppard2021-02-242-1/+83
| | | | | | | | | | | | | | | | | | | | Add further tests for functions that accept out and dtype arguments
| * | | | ENH/BUG: Improve definitions and fix bugsKevin Sheppard2021-02-243-42/+896
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add tests Fix related bugs Improve specificity of definitions
| * | | | ENH/BUG: Add tests and correct typing issuesKevin Sheppard2021-02-248-40/+1077
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add tests for lower level components Correct errors found in testing Improve specificity of tests Other small fixes to docs and typing
| * | | | TST: Add tests for random typingKevin Sheppard2021-02-243-0/+56
| | | | |
| * | | | MAINT: Restructure imports in pyi fileKevin Sheppard2021-02-241-51/+53
| | | | |
| * | | | ENH: Add typing for RandomStateKevin Sheppard2021-02-243-61/+605
| | | | | | | | | | | | | | | | | | | | | | | | | Add typing for RandomState Small fixes to Generator's typing
* | | | | Merge pull request #18476 from cgohlke/patch-1Sebastian Berg2021-02-241-2/+2
|\ \ \ \ \ | | | | | | | | | | | | BUG: Remove suspicious type casting
| * | | | | MAINT: cast Py_ssize_t to intChristoph Gohlke2021-02-231-1/+1
| | | | | |
| * | | | | MAINT: Remove suspicious type castingChristoph Gohlke2021-02-231-1/+1
| | |/ / / | |/| | |
* | | | | DOC: Explaing differences in code paths in choiceKevin Sheppard2021-02-242-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add explanation for different results when using user-specified probabilities even if uniform closes #18172
* | | | | DOC: Correct poisson docstringKevin Sheppard2021-02-242-4/+6
| |/ / / |/| | | | | | | | | | | closes #18314
* | | | Merge pull request #18478 from cgohlke/patch-3Sebastian Berg2021-02-231-1/+1
|\ \ \ \ | | | | | | | | | | BUG: verify pointer against NULL before using it
| * | | | MAINT: verify pointer against NULL before using itChristoph Gohlke2021-02-231-1/+1
| |/ / /
* | | | MAINT: remove nonsensical comparison of pointer < 0Christoph Gohlke2021-02-231-1/+1
|/ / /
* | | Merge pull request #18372 from lelayf/random-standard_t-docCharles Harris2021-02-232-30/+54
|\ \ \ | |/ / |/| | DOC: improve standard_t example in numpy.random.
| * | Merge branch 'master' into random-standard_t-docFrançois Le Lay2021-02-1750-465/+1683
| |\ \
| * | | Remove poorly cited referenceFrançois Le Lay2021-02-122-24/+16
| | | | | | | | | | | | | | | | | | | | Clarify point about std computation Use absolute value for p-value computation of 2-tailed test
| * | | DOC: improve standard_t example in numpy.random.François Le Lay2021-02-082-28/+60
| | | | | | | | | | | | | | | | | | | | | | | | This rewrite better reflects the cited reference R example by offering a 2-tailed test and more accurate language. Closes #18370.
* | | | Merge pull request #18110 from mhvk/function-base-piecewise-refactorSebastian Berg2021-02-222-2/+10
|\ \ \ \ | | | | | | | | | | API: make piecewise subclass safe using use zeros_like.
| * | | | API: make piecewise subclass safe using use zeros_like.Marten van Kerkwijk2021-02-222-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Subclass input of piecewise was already respected, so it seems more logical to ensure the output is the same subclass (possibly just an oversight that it was not done before).
* | | | | Merge pull request #18450 from ahaldane/fix_nditer_od_segfaultSebastian Berg2021-02-224-8/+35
|\ \ \ \ \ | |/ / / / |/| | | | BUG: Segfault in nditer buffer dealloc for Object arrays
| * | | | BUG: Segfault in nditer buffer dealloc for Object arraysAllan Haldane2021-02-214-8/+35
| | | | |
* | | | | Merge pull request #18404 from seberg/issue-18401Matti Picus2021-02-222-43/+76
|\ \ \ \ \ | | | | | | | | | | | | BUG: Fix iterator shape in advanced index assignment broadcast error
| * | | | | BUG: Fix iterator shape in advanced index assignment broadcast errorSebastian Berg2021-02-122-43/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The reported shape always missed the transpose operation, this refactors the transpose getting out and applies it in the error path. Closes gh-18401, gh-5710
* | | | | | Merge pull request #18443 from seberg/fix-stacklevel-shuffleMatti Picus2021-02-223-10/+24
|\ \ \ \ \ \ | | | | | | | | | | | | | | BUG: fix stacklevel in warning within random.shuffle
| * | | | | | TST: Add test for shuffle warning and assert stacklevelSebastian Berg2021-02-191-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test checks that the warning originates in the correct file (test_random.py). I am not quite sure how safe the test is, though. Unfortunately, there is no "obvious" way to test stacklevels.
| * | | | | | BUG: fix stacklevel in warning within random.shuffleSebastian Berg2021-02-192-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cython does _not_ add a new stacklevel (at least at this time), so `stacklevel=1` (or ommiting it) is, maybe surprisingly, correct.
* | | | | | | BUG: Fixed an issue where `diagflat` could overflow on windows and 32-bit ↵Bas van Beek2021-02-211-4/+4
| |_|/ / / / |/| | | | | | | | | | | | | | | | | platforms
* | | | | | Merge pull request #15392 from seberg/void-no-arr-modificationMatti Picus2021-02-193-81/+153
|\ \ \ \ \ \ | |/ / / / / |/| | | | | BUG: Remove temporary change of descr/flags in VOID functions
| * | | | | TST: Add test for nonzero and copyswapn (through advanced indexing)Sebastian Berg2021-02-172-0/+45
| | | | | |
| * | | | | BUG: Remove temporary change of descr/flags in VOID functionsSebastian Berg2021-02-171-81/+108
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is done using a hack around stack allocated arrays, which requires some dark magic with respect to the setting the base object (we skip normal arrays and INCREF/DECREF during base setting, which _does_ work for such static arrays, but only if we give them a (not quite) fake refcount of 1 and set the base and their type correctly to PyArrayType. Closes gh-15387
* | | | | CLN: Add additional castKevin Sheppard2021-02-181-1/+1
| | | | |
* | | | | MAINT: Correct code producing warningsKevin Sheppard2021-02-183-3/+3
|/ / / / | | | | | | | | | | | | | | | | Cast to avoid warnings Correct function
* | | | Merge pull request #18436 from seberg/refcount-leak-f2pyMatti Picus2021-02-171-0/+1
|\ \ \ \ | | | | | | | | | | BUG: Fix refcount leak in f2py `complex_double_from_pyobj`
| * | | | BUG: Fix refcount leak in f2py `complex_double_from_pyobj`Sebastian Berg2021-02-171-0/+1
| |/ / /
* | | | Merge pull request #16588 from SabrinaSimao/np.transpode-documentationMelissa Weber Mendonça2021-02-172-0/+4
|\ \ \ \ | |_|_|/ |/| | | DOC: unify the docs for np.transpose and ndarray.transpose
| * | | DOC: changed the way the link is being used from transpose to ndarray.transposeSabrinaSimao2020-06-122-4/+4
| | | | | | | | | | | | | | | | I feel like the `ndarray.transpose` has more details, and it's also called by `transpose`, so i changed the way the link between them was being used
| * | | unify the docs for np.transpose and ndarray.transposeSabrinaSimao2020-06-122-0/+4
| | | |
* | | | Merge pull request #18395 from bashtage/random-typingMatti Picus2021-02-178-13/+810
|\ \ \ \ | | | | | | | | | | ENH: Initial typing of random
| * | | | ENH: Reorder bool and add scalar bool for integersKevin Sheppard2021-02-161-9/+18
| | | | |
| * | | | ENH: Add overloads to integersKevin Sheppard2021-02-151-7/+121
| | | | |
| * | | | ENH: Fix abstract integer useKevin Sheppard2021-02-151-2/+19
| | | | | | | | | | | | | | | | | | | | Replace with concrete types
| * | | | ENH: Fix typingKevin Sheppard2021-02-151-2/+2
| | | | | | | | | | | | | | | | | | | | Correct specific typing and general typing
| * | | | ENH: Update typingKevin Sheppard2021-02-151-2/+10
| | | | | | | | | | | | | | | | | | | | Update with latest suggestions
| * | | | ENH: Add overloadsKevin Sheppard2021-02-135-55/+192
| | | | |
| * | | | ENH: Fix additional missed typesKevin Sheppard2021-02-131-8/+17
| | | | |
| * | | | ENH: More typingKevin Sheppard2021-02-131-82/+102
| | | | |
| * | | | ENH: Update with TypedDictKevin Sheppard2021-02-136-28/+53
| | | | | | | | | | | | | | | | | | | | Update using TypedDict for state
| * | | | ENH: Add typing for GeneratorKevin Sheppard2021-02-134-8/+253
| | | | |