summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Do not forward `__(deep)copy__` calls of `_GenericAlias` to the ↵Bas van Beek2021-11-102-0/+18
| | | | | | wrapped type Adapt to the python 3.9.8 changes made in bpo-45167.
* Merge pull request #20343 from mattip/alloc-versionSebastian Berg2021-11-107-10/+73
|\ | | | | ENH: add a 'version' field to PyDataMem_Handler
| * ENH: add a 'version' field to PyDataMem_Handlermattip2021-11-107-10/+73
| |
* | Merge pull request #20331 from bzah/fix/quantile-default-lerp-methodSebastian Berg2021-11-092-5/+15
|\ \ | |/ |/| MAINT: Update quantile default lerp method
| * TST: Add test for max ulp in default quantile calculationabel2021-11-091-0/+8
| |
| * MTH: Update quantile default lerp methodabel2021-11-091-5/+7
| | | | | | | | | | | | For method 7 of H&F, using `(n - 1) * quantiles` instead of the usual method gives a more accurate result.
* | Merge pull request #20333 from lazka/mingw-remove-old-version-checksMatti Picus2021-11-091-69/+12
|\ \ | | | | | | DEP: remove code for supporting GCC <4 in Mingw32CCompiler
| * | DEP: remove code for supporting GCC <4 in Mingw32CCompilerChristoph Reiter2021-11-091-69/+12
| |/ | | | | | | | | | | | | The last GCC 3.x release before 4.0 was 3.4 which was released 2004, so 17 years ago. Removes all code only used with those old toolchains.
* | Merge pull request #19083 from hameerabbasi/dlpackSebastian Berg2021-11-0914-17/+820
|\ \ | |/ |/| ENH: Implement the DLPack Array API protocols for ndarray.
| * MAINT: Simplify `byte_offset` handling in dlpack.h and add commentSebastian Berg2021-11-091-24/+16
| | | | | | | | | | | | | | If `byte_offset = 0` is forced anyway, there is no point in trying to preserve a previous `data` information from the capsule. (And probably it should have used a base array also, and not just a base DLPack capsule, anyway.)
| * add release note, error out if offset is usedmattip2021-11-091-1/+7
| |
| * make a.__dlpack__() fail if a is readonlymattip2021-11-042-1/+13
| |
| * change from_dlpack to _dlpack, remove unused headermattip2021-11-0211-49/+32
| |
| * UpdatesMatti Picus2021-11-022-5/+3
| | | | | | | | | | Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net> Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com>
| * BUG: fixes from reviewmattip2021-11-021-40/+64
| |
| * move dlpack functions to a new filemattip2021-11-027-393/+419
| |
| * BUG: Offset not properly stored/computed.Hameer Abbasi2021-11-022-10/+29
| |
| * MAINT: Robustify dlpack_capsule_deleter and add comments.Hameer Abbasi2021-11-022-8/+34
| |
| * BUG, TST: Device bugfix and test __dl_device__.Hameer Abbasi2021-11-023-14/+32
| |
| * BUG: Fix handling of C-contiguous and 1-element arrays.Hameer Abbasi2021-11-023-10/+18
| |
| * TST: Improve testing coverage for DLPack.Hameer Abbasi2021-11-021-0/+11
| |
| * MAINT: Move around code so that there are no more unused warnings.Hameer Abbasi2021-11-023-25/+24
| |
| * MAINT: Split up capsule deleter.Hameer Abbasi2021-11-022-7/+19
| |
| * MAINT: Add URL to DLPack GitHub.Hameer Abbasi2021-11-021-0/+2
| |
| * MAINT, BUG: Documentation for DLPack protocol and refcounting bug fixes.Hameer Abbasi2021-11-026-25/+58
| |
| * ENH, TST: Add the from_dlpack method and test DLPack.Hameer Abbasi2021-11-028-14/+287
| |
| * ENH: Add the __dlpack__ and __dlpack_device__ methods to ndarray.Hameer Abbasi2021-11-023-0/+361
| |
* | Merge pull request #19429 from defoishugo/fix_multiarray_leaksMatti Picus2021-11-093-5/+12
|\ \ | | | | | | BUG: Fix some multiarray leaks
| * | Fixups based on review comments.Sebastian Berg2021-09-293-8/+11
| | |
| * | BUG: fix a PyArray_CastScalarToCtype leakHugo Defois2021-09-291-0/+2
| | |
| * | BUG: fix a PyInit__multiarray_umath leakHugo Defois2021-09-291-0/+1
| | |
| * | BUG: fix a PyArray_DiscoverDTypeAndShape_Recursive leakHugo Defois2021-09-291-0/+1
| | |
* | | DOC: Remove non-existent aliasabel2021-11-083-13/+10
| | |
* | | MAINT: Remove Python <3.8 support from CSebastian Berg2021-11-074-88/+3
| | | | | | | | | | | | | | | | | | Remove version switches for support of Python versions before 3.8. The biggest deletion is that we can use Pythons `PyVectorcall_Call` to support the old `*args, **kwargs` style call convention in ufuncs.
* | | Merge pull request #20292 from seiko2plus/replace_raw_ceilMatti Picus2021-11-075-33/+26
|\ \ \ | | | | | | | | SIMD: replace raw SIMD of ceil with universal intrinsics
| * | | SIMD: replace raw SIMD of ceil with universal intrinsicsSayed Adel2021-11-065-33/+26
| | | |
* | | | Merge pull request #20308 from BvB93/is_pystonCharles Harris2021-11-053-3/+3
|\ \ \ \ | | | | | | | | | | MAINT: Add `IS_PYSTON` to `np.testing.__all__`
| * | | | MAINT: Add missing annotations for `IS_PYSTON`Bas van Beek2021-11-051-0/+1
| | | | |
| * | | | MAINT: Add `IS_PYSTON` to `np.testing.__all__`Bas van Beek2021-11-052-3/+2
| | | | |
* | | | | Merge pull request #18203 from anntzer/fqSebastian Berg2021-11-051-1/+2
|\ \ \ \ \ | | | | | | | | | | | | MAINT: Speedup np.quantile.
| * | | | | PERF: Speedup np.quantile.Antony Lee2021-11-051-1/+2
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Avoiding the unnecessary calls to moveaxis() speed up `np.quantile(x, .5)` (`x = np.random.rand(1000)`) by ~10% (although there's a lot of variability) for me.
* | | | | MAINT: Add annotations for a missing `percentile` interpolation kind: ↵Bas van Beek2021-11-051-0/+1
|/ / / / | | | | | | | | | | | | `"inclusive"`
* | | | Merge pull request #19857 from bzah/feature/rewrite_percentileSebastian Berg2021-11-044-240/+842
|\ \ \ \ | | | | | | | | | | MAINT, ENH: Refactor percentile and quantile methods
| * | | | DOC: Refer to the quantile/percentile notes for nan versionsSebastian Berg2021-11-042-201/+4
| | | | |
| * | | | MAINT: Remove unnecessary import of _QuantileInterpolationSebastian Berg2021-11-041-1/+0
| | | | |
| * | | | TST: Make use of clongdouble and longdoubleabel2021-11-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | On some platforms float128 and complex256 do not exist. Using (c)longdouble aliases should work on all platforms.
| * | | | DOC: Update _InterpolationKindabel2021-11-041-1/+9
| | | | |
| * | | | TST: Add parametrize for interpolation methodsabel2021-11-041-91/+43
| | | | |
| * | | | TST: Add extrapolation testsabel2021-11-041-0/+9
| | | | |
| * | | | MAINT: Clean following PR commentsabel2021-11-042-17/+7
| | | | |