summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Bump hypothesis from 6.8.1 to 6.8.3dependabot/pip/hypothesis-6.8.3dependabot-preview[bot]2021-03-291-1/+1
| | | | | | | Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.8.1 to 6.8.3. - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.8.1...hypothesis-python-6.8.3) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Merge pull request #18691 from aarchiba/scalar_object_crash_fixCharles Harris2021-03-282-1/+139
|\ | | | | BUG: fix segfault in object/longdouble operations
| * Remove unused variablesAnne Archibald2021-03-281-2/+0
| |
| * BUG: fix segfault in object/longdouble operationsAnne Archibald2021-03-282-1/+141
|/ | | | | | | | | The operation None*np.longdouble(3) was causing infinite recursion as it searched for the appropriate conversion method. This resolves that, both for general operations and for remainders specifically (they fail in a subtly different way). Closes #18548
* Merge pull request #18685 from charris/post-1.20.2-release-updateCharles Harris2021-03-283-0/+90
|\ | | | | REL: Update main after 1.20.2 release.
| * REL: Update main after 1.20.2 release.Charles Harris2021-03-273-0/+90
|/
* Merge pull request #18679 from mrios1999/mainCharles Harris2021-03-262-1/+5
|\ | | | | BUG: Changed METH_VARARGS to METH_NOARGS
| * BUG: Changed METH_VARARGS to METH_NOARGSmrios2021-03-251-0/+4
| |
| * BUG: Changed METH_VARARGS to METH_NOARGSmrios2021-03-251-1/+1
| |
* | Merge pull request #18515 from terfilip/select-dtype-err-msg-18430Charles Harris2021-03-261-2/+13
|\ \ | | | | | | MAINT: Improve error message when common type not found.
| * | MAINT: Adding exception chaining and switching to fstringFilip Ter2021-03-241-5/+4
| | |
| * | ENH: A more helpful error message, when types don't match type of default kwargFilip Ter2021-02-281-2/+14
| | |
* | | Docs: simd-optimizations.rst: fix basline typo (#18680)Maxim Belkin2021-03-251-2/+2
| |/ |/|
* | Merge pull request #15271 from seberg/splitup-faster-argparsingCharles Harris2021-03-249-1177/+929
|\ \ | | | | | | ENH: Optimize and cleanup ufunc calls and ufunc CheckOverrides
| * | DOC: Fix spelling in release noteSebastian Berg2021-03-231-1/+1
| | | | | | | | | | | | [skip CI]
| * | DOC: Link all three PRs and use the first PR as the "base" (filename)Sebastian Berg2021-03-231-16/+0
| | |
| * | BUG: Fix bug(s) introduced due to rebase/merge conflictSebastian Berg2021-03-231-2/+1
| | |
| * | DOC: Fixup ufunc-argparse release notes and code commentsSebastian Berg2021-03-232-9/+7
| | | | | | | | | | | | This is based on Marten's review again.
| * | MAINT: Declare functions `static` rather than `NPY_NO_EXPORT`Sebastian Berg2021-03-231-3/+3
| | | | | | | | | | | | | | | These functions do not require `NPY_NO_EXPORT`. One of them was (incorrectly) flagged by code coverage. Maybe this helps...
| * | BUG: Add missing `static` leading to a (harmless) ref-leakSebastian Berg2021-03-231-1/+1
| | |
| * | BUG: Add missing decref to `dtype` parsingSebastian Berg2021-03-231-0/+1
| | |
| * | DOC: Add release notes for ufunc (and FASTCALL) refactorSebastian Berg2021-03-232-0/+49
| | |
| * | MAINT: Address comments by MartenSebastian Berg2021-03-235-94/+83
| | | | | | | | | | | | | | | | | | | | | | | | This fixes the review comments by Marten, mainly small cleanups. The largest change is that it is now back to a ValueError if the out tuple has the wrong length. Co-Authored-By: Marten van Kerkwijk <mhvk@astro.utoronto.ca>
| * | DOC: Fixup comment style for nowSebastian Berg2021-03-231-1/+1
| | |
| * | DOC: Fixup comments based on review and remove TODOSebastian Berg2021-03-233-7/+11
| | | | | | | | | | | | | | | | | | | | | The TypeError TODO is also reflected in the tests I think, the other TODO seems pretty unnecessary (most users will go through `tp_vectorcall` anyway, so micro-optimizing that is not all that relevant).
| * | ENH: Optimize and cleanup ufunc calls and ufunc CheckOverridesSebastian Berg2021-03-239-1155/+883
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a rather large commit which clean up the ufunc override code for argument parsing. (I may attempt to split it up) There are two main things, argument parsing, especially for reductions is now much faster since `METH_FASTCALL` is used (when keyword arguments are being used). By moving the argument parsing and using more generic code this also simplifies the ufunc override checking especially when keyword arguments are present. Both of this decreases the argument parsing overhead quite a lot for ufunc calls, especially for small reductions. (Without double checking, I believe the speedup was up to around 30% for small reductions.) The downside is some added/annoyance due to the use of marcos to support both FASTCALL and no FASTCALL semantics. As a side note: vectorcall is likely not a huge factor for ufuncs since it is very common not to use any keyword arguments. OTOH, code that uses ``out=...`` a lot on small arrays should see a nice difference.
* | | ENH: Improve performance of `np.save` for small arrays (gh-18657)Ohad Ravid2021-03-242-6/+20
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ENH: Remove call to `_filter_header` from `_write_array_header` Improve performance of `np.save` by removing the call when writing the header, as it is known to be done in Python 3. * ENH: Only call `_filter_header` from `_read_array_header` for old vers Improve performance of `np.load` for arrays with version >= (3,0) by removing the call, as it is known to be done in Python 3. * ENH: Use a set of keys when checking `read_array` Improve performance of `np.load`. * DOC: Improve performance of `np.{save,load}` for small arrays
* | Merge pull request #18670 from seberg/small-pytest-leaks-fixesCharles Harris2021-03-236-24/+37
|\ \ | | | | | | BUG: Fix small issues found with pytest-leaks
| * | BUG: Fix small issues found with pytest-leaksSebastian Berg2021-03-236-24/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | None of these are particularly worrying as they either usually only leak reference (and not memory) or appear in rare or almost impossible error-paths, or are limited to the tests. Unfortunately, this PR will not apply to 1.20.x, due to small changes in the overrides.
* | | Merge pull request #18666 from bashtage/rayleigh-perfCharles Harris2021-03-226-10/+29
|\ \ \ | |/ / |/| | ENH: Use exponentials in place of inversion in Rayleigh and geometric
| * | PERF: Use exponentials in place of inversionKevin Sheppard2021-03-226-10/+29
|/ / | | | | | | Use exponentials rather than generating exponentials via inversion
* | Merge pull request #18664 from numpy/dependabot/pip/sphinx-3.5.3Ralf Gommers2021-03-221-1/+1
|\ \ | | | | | | MAINT: Bump sphinx from 3.5.2 to 3.5.3
| * | MAINT: Bump sphinx from 3.5.2 to 3.5.3dependabot/pip/sphinx-3.5.3dependabot-preview[bot]2021-03-221-1/+1
|/ / | | | | | | | | | | | | | | Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 3.5.2 to 3.5.3. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/3.x/CHANGES) - [Commits](https://github.com/sphinx-doc/sphinx/commits) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* | Merge pull request #18652 from timhoffm/doc-plotRalf Gommers2021-03-217-15/+21
|\ \ | | | | | | DOC: Update some plotting code to current Matplotlib idioms
| * | DOC: Update some plotting code to current Matplotlib idiomsTim Hoffmann2021-03-217-15/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | - 3D Axes are created via add_subplot(projection='3d') - There is now a `stairs()` function that's specifically designed for showing histogram curves - Labels should be passed as keyword arguments to the plot functions instead of to `legend()`, which reduces the risk of mixing them up. - ensure equal axis scaling in the meshgrid example
* | | Merge pull request #18660 from rgommers/relnote-xlocaleCharles Harris2021-03-211-0/+6
|\ \ \ | | | | | | | | DOC: add release note for removal of /usr/include from include paths
| * | | DOC: add release note for removal of /usr/include from include pathsRalf Gommers2021-03-211-0/+6
| | | | | | | | | | | | | | | | Follow-up to gh-18658
* | | | Merge pull request #18658 from rgommers/fix-xlocaleCharles Harris2021-03-211-3/+2
|\ \ \ \ | |/ / / |/| | | BLD: remove /usr/include from default include dirs
| * | | BLD: remove /usr/include from default include dirsRalf Gommers2021-03-211-3/+2
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Including this directory is painful for cross-compiling, see gh-14980 and gh-13280. Removing this directory fixes the following build failure: ``` gcc: numpy/core/src/common/numpyos.c In file included from numpy/core/src/common/numpyos.c:23: /usr/include/xlocale.h:27:16: error: redefinition of ‘struct __locale_struct’ 27 | typedef struct __locale_struct ``` This error also shows up in various other build issues outside of the NumPy issue tracker. Compilers normally always include this path, so this shouldn't break anything. The default include paths for the compiler can be checked, e.g. for gcc with `cpp -v`. That will typically have /usr/include last. In case this breaks something for a nonstandard compiler, that can be worked around via a site.cfg file in the root of the repo (or equivalently, `~/numpy-site.cfg`) containing: ``` [DEFAULT] include_dirs = /usr/include ``` The same principle should apply to `/usr/lib`. I will make that change in a separate commit, because the failure mode for that will be different (and I'm not running into it right now).
* | | Merge pull request #18579 from mwtoews/refactor-dictRalf Gommers2021-03-214-47/+19
|\ \ \ | | | | | | | | MAINT: OrderedDict is no longer necessary from Python 3.7
| * | | MAINT: OrderedDict is no longer necessary from Python 3.7Mike Taves2021-03-084-47/+19
| | | |
* | | | Merge pull request #18593 from seberg/stop-lying-about-binop-inputsMatti Picus2021-03-217-54/+68
|\ \ \ \ | | | | | | | | | | MAINT: Do not claim input to binops is `self` (array object)
| * | | | TST: Add minimal test for passing an out argument to arr.conjugate()Sebastian Berg2021-03-181-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | This can currently only be passed positionally, and this is undocumented.
| * | | | Update numpy/core/src/multiarray/calculation.cSebastian Berg2021-03-181-1/+2
| | | | | | | | | | | | | | | Co-authored-by: Matti Picus <matti.picus@gmail.com>
| * | | | MAINT: Do not claim input to binops is `self` (array object)Sebastian Berg2021-03-106-54/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On the C-side binops only guarantee that one of the operands is an instance of `PyArrayObject *`, but we do not know which one. Typing the first as `PyArrayObject *` is just misleading for almost no actual payoff
* | | | | Merge pull request #18642 from seberg/splitup-faster-argparsing-optimize-asarrayMatti Picus2021-03-2119-545/+694
|\ \ \ \ \ | | | | | | | | | | | | ENH: Use new argument parsing for array creation functions
| * | | | | DOC: Update the docs to match how they changed in masterSebastian Berg2021-03-181-14/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I had forgotten that the docs for these functions where updated when rebasing.
| * | | | | BUG,TST: Fix error path and argument name (and add test coverage)Sebastian Berg2021-03-183-4/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The argument name for the python side defined function was always `a` and not `object` so fix it and add a test. Also add a test to ensure the error paths are taken for all of the function. The missing NULL returns cannot be tested easily (but thanks to code coverage its nice to look at the uncovered stuff closer...)
| * | | | | DOC: Add TODO comment that `asarray` stubs will need movingSebastian Berg2021-03-181-0/+4
| | | | | |
| * | | | | BUG: import `asanyarray` to `_asarray.py` as its used in `np.require`Sebastian Berg2021-03-181-1/+1
| | | | | |