summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | | | | | | MAINT: Move add/multiple reduction special case into promotion helperSebastian Berg2022-10-121-32/+33
| | | | | | | | | | | |
| | * | | | | | | | | | TST: Add basic tests for lowlevel access (including direct loop call)Sebastian Berg2022-10-121-0/+97
| | | | | | | | | | | |
| | * | | | | | | | | | ENH: Expose `ufunc.resolve_dtypes` and strided loop accessSebastian Berg2022-10-122-0/+493
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The API here designed is "future" in the sense that it implementes NEP 50 and exposes loop specializations as per NEP 43 which is barely used by NumPy itself at this point. Due to the fact that NEP 50 is not implemented (or rather finalized) this API is not ideal and creates dummy-arrays internally so that it is not much faster than if the user created dummy arrays to probe the correct result.
| * | | | | | | | | | | Merge pull request #22571 from DanielHabenicht/patch-1Sebastian Berg2022-11-161-1/+1
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | BUG: fix misleading error message
| | * | | | | | | | | | | Update numpy/core/src/umath/ufunc_type_resolution.cDanielHabenicht2022-11-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
| | * | | | | | | | | | | BUG: add quotes to error messageDanielHabenicht2022-11-111-1/+1
| | | | | | | | | | | | |
| | * | | | | | | | | | | BUG: fix misleading error messageDanielHabenicht2022-11-111-1/+1
| | | |/ / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | closes gh-22570
| * | | | | | | | | | | Merge pull request #22588 from rossbar/doc/row_stack-is-vstackSebastian Berg2022-11-161-0/+2
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | DOC: Clarify relationship between row_stack and vstack.
| | * | | | | | | | | | | DOC: Clarify relationship between row_stack and vstack.Ross Barnowski2022-11-141-0/+2
| | | | | | | | | | | | |
| * | | | | | | | | | | | Merge pull request #22548 from juztamau5/cleanup-orderSebastian Berg2022-11-1614-42/+42
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | MAINT: Fix designator order not matching declaration order
| | * | | | | | | | | | | | Cleanup: Fix designator order not matching declaration orderjuztamau52022-11-0714-42/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Example error: array_method.c:487:1: error: designator order for field '_typeobject::tp_dealloc' does not match declaration order in 'PyTypeObject' {aka '_typeobject'} 487 | }; | ^
| * | | | | | | | | | | | | DOC: Update parameter descriptions for np.pad (#22519)Miki Watanabe2022-11-151-17/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some parameters like pad_width or stat_length claimed to expect tuples-of-tuples as input, but in practice they also work with single tuples. The parameter descriptions of the relevant parameters are updated in the docstring to reflect this implicit tuple wrapping behavior. Co-authored-by: 渡邉 美希 <miki.watanabe@watanabenoMacBook-Pro.local>
| * | | | | | | | | | | | | Merge pull request #21895 from hoodmane/emscripten-ciRalf Gommers2022-11-1534-24/+137
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ENH, CI: Add Emscripten to CI
| | * | | | | | | | | | | | | BLD, BUG: Fix math feature detection with musl libcHood Chatham2022-11-111-0/+12
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | TST: Skip tests that are not currently supported in wasmHood Chatham2022-11-1133-24/+125
| | | |_|_|_|_|_|/ / / / / / | | |/| | | | | | | | | | |
| * | | | | | | | | | | | | Merge pull request #22587 from BvB93/typingCharles Harris2022-11-159-23/+52
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|/ / / / / / / / / / | |/| | | | | | | | | | | | TYP: Update type annotations for new 1.24 features
| | * | | | | | | | | | | | TYP,DEP: Remove `msort` annotationsBvB932022-11-142-10/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Xref https://github.com/numpy/numpy/pull/22456
| | * | | | | | | | | | | | TYP,ENH: Add annotations for `np.show_runtime`BvB932022-11-143-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Xref https://github.com/numpy/numpy/pull/21468
| | * | | | | | | | | | | | TYP,ENH: Improve the `dtype`-overload of `stack`, `hstack` and `vstack`BvB932022-11-142-11/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Xref https://github.com/numpy/numpy/pull/21627
| | * | | | | | | | | | | | TYP,DEP: Remove all reference to the removed `MaskedArray.mini` methodBvB932022-11-141-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Xref https://github.com/numpy/numpy/pull/22228
| | * | | | | | | | | | | | TYP,ENH: Add annotations for the new `ABCPolyBase.symbol` propertyBvB932022-11-141-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Xref https://github.com/numpy/numpy/pull/16154
| * | | | | | | | | | | | | Merge pull request #22583 from charris/create-f2c_blas-patchRalf Gommers2022-11-141-0/+112
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MAINT: Patch to remove ncola variable from f2c_blas.c [ci skip]
| | * | | | | | | | | | | | MAINT: Patch to remove ncola variable from f2c_blas.cCharles Harris2022-11-131-0/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [skip ci]
| * | | | | | | | | | | | | Merge pull request #22586 from rossbar/maint/arrayprint-type-cleanupSebastian Berg2022-11-141-4/+0
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / | |/| | | | | | | | | | | | MAINT: Rm meaningless checks in determining typeless data
| | * | | | | | | | | | | | MAINT: Rm unnecessary checks in determining typeless data.Ross Barnowski2022-11-131-4/+0
| | | |_|/ / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The issubclass should always be false in Python3, so this change should not change behavior.
| * | | | | | | | | | | | BLD: remove unused `ncola` variables from lapack-liteRalf Gommers2022-11-131-16/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes some annoying build warnings.
| * | | | | | | | | | | | Merge pull request #22578 from rgommers/fix-dlpack-includesSebastian Berg2022-11-131-5/+3
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | BLD: fix issue with header includes in dlpack.c
| | * | | | | | | | | | | | BLD: fix issue with header includes in dlpack.cRalf Gommers2022-11-121-5/+3
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | MAINT: remove `NPY_RESTRICT` in favor of C99 `restrict`Ralf Gommers2022-11-121-2/+0
| |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This saves doing an expensive configure-time check that does not seem needed.
| * | | | | | | | | | | | BUG: fix issue with broken assert statement in `templ_common.h.src`Ralf Gommers2022-11-121-2/+3
| |/ / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | assert() only takes one argument. This was recently introduced, in commit 4156ae260 (gh-21793)
| * | | | | | | | | | | Merge pull request #22566 from seberg/ObjectType-fixupCharles Harris2022-11-104-18/+71
| |\ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / | |/| | | | | | | | | | BUG: Fix use and errorchecking of ObjectType use
| | * | | | | | | | | | MAINT: Ensure that datetime dot, correlate, and vdot cannot happenSebastian Berg2022-11-091-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is by just undefining the function that should never have been defined to begin with.
| | * | | | | | | | | | BUG: Fix use and errorchecking of ObjectType useSebastian Berg2022-11-093-15/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should be replaced really, it is pretty bad API use, and doesn't work well (up to being incorrect probably). But working on other things (trying to make promotion strict and thus saner), I realized that the use was always wrong: we cannot pass 0 since 0 means `bool`, what was always meant was passing no-type. So fixing this, and adding the error check everywhere. Checking for `PyErr_Occurred()` may have been necessary at some point, but is not anymore.
| * | | | | | | | | | | Merge pull request #22552 from juztamau5/fix-temp-addressSebastian Berg2022-11-091-6/+12
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | MAINT: Do not use temporary struct construct
| | * | | | | | | | | | | Fix taking address of temporary arrayjuztamau52022-11-091-6/+12
| | | |/ / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Error was: dtype_transfer.c:2979:28: error: taking address of temporary array 2979 | (char *[2]){main_src, main_dst}, &block_size, | ^~~~~~~~~~~~~~~~~~~~
| * | | | | | | | | | | Merge pull request #22540 from seberg/finalize-dtype-deprCharles Harris2022-11-093-48/+37
| |\ \ \ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / / / | |/| | | | | | | | | | DEP: Expire deprecation of dtype/signature allowing instances
| | * | | | | | | | | | DEP: Expire deprecation of dtype/signature allowing instancesSebastian Berg2022-11-073-48/+37
| | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We never really allowed instances here and deprecated it since NumPy 1.21 (it just failed completely in 1.21.0).
| * | | | | | | | | | BUG: Decrement ref count in gentype_reduce when allocated memory not usedAayush Agrawal2022-11-081-0/+5
| | |_|_|_|_|_|/ / / | |/| | | | | | | |
| * | | | | | | | | Merge pull request #22375 from melissawm/doc-arangeMatti Picus2022-11-084-5/+22
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | DOC: How to partition domains
| | * | | | | | | | | DOC: Improve how-to-partition contents.melissawm2022-10-114-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also add links to this document from the functions' docstrings.
| | * | | | | | | | | DOC: How to partition domainsmelissawm2022-10-032-5/+15
| | | | | | | | | | |
| * | | | | | | | | | Merge pull request #22554 from juztamau5/cleanup-castSebastian Berg2022-11-081-1/+1
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | MAINT: Match arguments of constant in `isless()`
| | * | | | | | | | | | Cleanup: Match arguments of isless()juztamau52022-11-071-1/+1
| | | |/ / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Error was: npy_math_internal.h.src:570:24: error: no matching function for call to 'isless(npy_float&, int)' 570 | if (isless(b, 0) != isless(mod, 0)) { | ^
| * | | | | | | | | | Merge pull request #22550 from juztamau5/fix-enum-boolSebastian Berg2022-11-082-2/+2
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | MAINT: Fix Fortran order flag use (using bool rather than enum)
| | * | | | | | | | | | Fix conversion from bool to enumjuztamau52022-11-072-2/+2
| | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Error was: ndarraytypes.h:1503:75: error: cannot convert 'bool' to 'NPY_ORDER' in assignment
| * | | | | | | | | | DEP: Expire deprecation to ignore bad dtype= in logical ufuncs (#22541)Sebastian Berg2022-11-074-87/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DEP: Expire deprecation to ignore bad dtype= in logical ufuncs Basically only `bool` and `object dtype make sense, but they did not work correctly. The dtype argument was rather ignored often. The offending behavior was deprecated in 1.20 and is now removed. Co-authored-by: Sebastian Berg <sebastianb@nvidia.com> Co-authored-by: Charles Harris <charlesr.harris@gmail.com>
| * | | | | | | | | | API: Always use BufferError when dlpack export failsSebastian Berg2022-11-072-19/+22
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See also https://github.com/data-apis/array-api/pull/498. I think we should just change this. It is a niche feature and just an error type change. Closes gh-20742
* | | | | | | | | | MAINT: Update release from 1.24 to 1.25Charles Harris2023-02-191-1/+1
| | | | | | | | | |
* | | | | | | | | | MAINT: Update release from 1.24 to 1.25Charles Harris2023-02-191-5/+5
| | | | | | | | | |
* | | | | | | | | | ENH: Ensure we will transition to an error for `np.r_[int8_arr, 300]`Sebastian Berg2022-11-082-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | That is, once the NEP 50 transition happens