summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* [DOC] np.kron use double backticks for non-refsMatthias Bussonnier2020-12-131-2/+2
| | | | | | Some part of the docstring were between simple backticks which are therefore marked as cross-reference, while I belive the intended role is likely verbatim.
* [DOC] Replace verbatim to reference to local parameterMatthias Bussonnier2020-12-131-1/+1
| | | | | | The rest of the docstring and other function tend to have this convention and sphinx – as well as other tools – will be able to infer this actually refers to one of the function parameters.
* Merge pull request #17974 from charris/fix-versioneer-dirtyCharles Harris2020-12-121-1/+1
|\ | | | | BLD: Fixes for versioneer and setup.py sdist.
| * MAINT: Don't include "dirty" in versioneer generated versions.Charles Harris2020-12-101-1/+1
| | | | | | | | | | | | | | | | We patch the LICENSE file for both sdist and wheel releases, making them all "dirty", i.e., containing files that have not been committed. Having "dirty" in the product name is bad marketing and the versioneer tool does not have an option or style that will omit that bit of information, so patch the versioneer files to make that tag an empty string.
* | Merge pull request #17906 from fxcoudert/patch-1Ralf Gommers2020-12-121-1/+1
|\ \ | | | | | | BUG: Fix a MacOS build failure
| * | Update gnu.pyFX Coudert2020-12-031-1/+1
| | |
* | | Merge pull request #17955 from Carreau/fix-17944Charles Harris2020-12-111-7/+7
|\ \ \ | | | | | | | | DOC: Replace {var} in docstrings type annotation with `scalar or None`.
| * | | [DOC] Replace {var} in docstrings type annotation with `scalar or None`.Matthias Bussonnier2020-12-071-7/+7
| | | | | | | | | | | | | | | | Closes #17944
* | | | Merge pull request #17981 from BvB93/flatiterCharles Harris2020-12-116-33/+56
|\ \ \ \ | | | | | | | | | | ENH: Add proper dtype-support to `np.flatiter`
| * | | | STY: Fixed a typo: `ofthe` -> `of the`Bas van Beek2020-12-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Addresses https://github.com/numpy/numpy/pull/17981#discussion_r541018879 Co-Authored-By: Charles Harris <charlesr.harris@gmail.com>
| * | | | TST: Updated the `__array__` typing testsBas van Beek2020-12-112-6/+6
| | | | |
| * | | | TST: Updated the `np.flatiter` typing testsBas van Beek2020-12-112-9/+14
| | | | |
| * | | | ENH: Add dtype-support for `np.flatiter`Bas van Beek2020-12-111-7/+10
| | | | |
| * | | | ENH: Add dtype-support for the `__array__` protocolBas van Beek2020-12-112-11/+26
| | | | |
* | | | | Merge pull request #17968 from BvB93/dtype-typevarCharles Harris2020-12-113-5/+21
|\ \ \ \ \ | |/ / / / |/| | | | ENH: Use more typevars in `np.dtype`
| * | | | TST: Add new tests for `dtype` methodsBas van Beek2020-12-092-0/+16
| | | | |
| * | | | MAINT: Use `dtype[Any]` instead of `dtype`Bas van Beek2020-12-091-1/+1
| | | | |
| * | | | ENH: Replace `dtype` with the `_DType` typevarBas van Beek2020-12-091-4/+4
| | | | |
* | | | | Merge pull request #17782 from Qiyu8/einsum-muladdMatti Picus2020-12-111-101/+82
|\ \ \ \ \ | |_|_|_|/ |/| | | | SIMD: Optimize the performance of einsum's submodule multiply by using universal intrinsics
| * | | | add guard #ifndef NPY_DISABLE_OPTIMIZATIONQiyu82020-11-191-1/+4
| | | | |
| * | | | optimize the remaining elements using npyv_load_tillzQiyu82020-11-191-19/+8
| | | | |
| * | | | fix misleading commentQiyu82020-11-161-1/+1
| | | | |
| * | | | Optimize the performance of multiplyQiyu82020-11-091-102/+91
| | | | |
* | | | | BUG, SIMD: Fix direactive check for AVX512BW of intrinsics npyv_tobits_*Sayed Adel2020-12-091-2/+2
| | | | |
* | | | | Merge pull request #17966 from MaiaKaplan/arange_keywordSebastian Berg2020-12-091-0/+1
|\ \ \ \ \ | | | | | | | | | | | | BUG: Add missing decref to arange
| * | | | | Add missing decref to arange, refs 17878Maia Kaplan2020-12-091-0/+1
| | | | | |
* | | | | | Merge pull request #17795 from BvB93/x-likeMatti Picus2020-12-094-28/+33
|\ \ \ \ \ \ | | | | | | | | | | | | | | ENH: Add two new `_<X>Like` unions
| * | | | | | MAINT: Simplify existing `_<X>Like` annotationsBas van Beek2020-11-172-26/+25
| | | | | | |
| * | | | | | ENH: Add `_UIntLike` and `_TD64Like`Bas van Beek2020-11-172-1/+5
| | | | | | |
| * | | | | | ENH: Add `_BoolLike` to the union defining `_IntLike`Bas van Beek2020-11-171-1/+3
| | | | | | |
* | | | | | | Merge pull request #17956 from charris/version-with-versioneerMatti Picus2020-12-096-5/+557
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | ENH: Use versioneer to manage numpy versions.
| * | | | | | | ENH: Use versioneer to manage numpy versions.Charles Harris2020-12-086-5/+557
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new tags look like '1.21.0.dev0+98.gaa0453721f', where '98' is the number of commits since the 1.21.0 branch was started and 'aa0453721f'. The chosen form may be specified in the 'setup.cfg' file. This PR adds two new files 'numpy/_version.py' and 'numpy/version.py'. The latter is kept because it is part of the public API and is actually used by some downstream projects, but it is no longer dynamically created. See https://github.com/python-versioneer/python-versioneer/ for more information.
* | | | | | | | Merge pull request #17789 from seiko2plus/npyv_new_intrinsic_pk0Matti Picus2020-12-0914-40/+446
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | ENH, SIMD: Add new NPYV intrinsics pack(0)
| * | | | | | | | BLD, SIMD: Add check for inline ASM VSX supportSayed Adel2020-11-172-1/+37
| | | | | | | | |
| * | | | | | | | ENH, SIMD: Add new NPYV intrinsics pack(0)Sayed Adel2020-11-1712-39/+409
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add bitfield conversion for boolean vectors - add reverse elements of each 64-bit lane - add testing cases
* | | | | | | | | Merge pull request #17950 from Brunochris13/masterCharles Harris2020-12-081-1/+1
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | BUG: Removed empty String from Nag Compiler's Flags
| * | | | | | | | | BUG: Removed empty String from Nag Compiler's FlagsChristos Efstathiou2020-12-071-1/+1
| | | | | | | | | |
* | | | | | | | | | TST: Do not disable errors globally in ma/timer_comparison.pySebastian Berg2020-12-081-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This script is meant to be run stand-alone (and should probably just not be at this place), but moving these down is cleaner in any case. The issue is that our "public API" tests import the module and then modify the global state.
* | | | | | | | | | TST: Ensure `like=` tests are not sensitive to execution orderSebastian Berg2020-12-081-37/+35
| |_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This moves class creation into a `setup` function and uses `self` instead of the test class all over. There are probably nicer ways to fix (and improve) it, but this seemed nice minimal.
* | | | | | | | | TST: Fix crosstalk issues with polynomial str tests.Ross Barnowski2020-12-071-5/+8
| |_|_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Polynomial printing tests implicitly depended on calling order, causing the test suite to fail when the test ordering was randomized with the pytest-random plugin (gh-17954). Two factors contributed to this: * Improper setting of class-level test config and * Poorly designed test that overrode an inherited class variable.
* | | | | | | | BUG: numpy.putmask not respecting writeable flag (#17884)a-elhag2020-12-072-0/+11
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * BUG: numpy.putmask not respecting writeable flag * Made the code PEP8 compatible. Fixes gh-17871.
* | | | | | | [DOC]: Wrong length for underline in docstring.Matthias Bussonnier2020-12-061-1/+1
| |_|_|_|/ / |/| | | | | | | | | | | | | | | | | This can trip-up doc parsers like Numpydoc
* | | | | | TST: Fixed an issue where the typing tests would fail for comparison operationsBas van Beek2020-12-051-36/+36
| | | | | |
* | | | | | Merge pull request #17719 from BvB93/ndarrayCharles Harris2020-12-055-269/+275
|\ \ \ \ \ \ | | | | | | | | | | | | | | ENH: Make `ndarray` generic w.r.t. its shape and dtype
| * | | | | | TST: Replace `numpy.ndarray` with `numpy.ndarray[Any, Any]`Bas van Beek2020-11-264-262/+262
| | | | | | |
| * | | | | | ENH: Make `ndarray` generic w.r.t. its shape and dtypeBas van Beek2020-11-261-7/+13
| | | | | | |
* | | | | | | DOC: Add a note that one should preferably use `contextlib.nullcontext`Bas van Beek2020-12-051-0/+3
| | | | | | |
* | | | | | | MAINT: Replace `contextlib_nullcontext` with `contextlib.nullcontext`Bas van Beek2020-12-054-15/+15
| | | | | | |
* | | | | | | Merge pull request #17907 from cgohlke/patch-1Charles Harris2020-12-041-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | BUG: 'bool' object has no attribute 'ndim'
| * | | | | | | Fix AttributeError: 'bool' object has no attribute 'ndim'Christoph Gohlke2020-12-031-1/+1
| | | | | | | |