summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #22106 from charris/backport-22105Charles Harris2022-08-111-1/+1
|\ | | | | TST: fix test_linear_interpolation_formula_symmetric
| * TST: fix test_linear_interpolation_formula_symmetricPal Barta2022-08-101-1/+1
| | | | | | | | | | | | | | | | | | The lerp test compared the output of the original and the symmetric functions by using basic assertion. Double precision errors could accumulate in a way that the 2 outputs mismatch by epsilon. For more information on the precision issue, see #22073 Fix: use assert_allclose instead for float comparison.
* | BUG: Fix skip condition for test_loss_of_precision[complex256]Alexander Grund2022-08-101-5/+10
|/ | | | | | | The check code needs to use another constant to check for an affected GLIBC on PPC. See #15763 Fixes #15243
* ENH: reorder includes for system installationsmattip2022-08-031-1/+1
|
* Merge pull request #22039 from charris/backport-22010Charles Harris2022-07-241-0/+5
|\ | | | | DOC: Add versionchanged for converter callable behavior.
| * DOC: Add versionchanged for converter callable behavior.Ross Barnowski2022-07-241-0/+5
| |
* | Merge pull request #22038 from charris/backport-21996Charles Harris2022-07-242-10/+47
|\ \ | | | | | | BUG: Avoid errors on NULL during deepcopy
| * | BUG: Avoid errors on NULL during deepcopy (#21996)Jon Cusick2022-07-242-10/+47
| |/ | | | | | | | | | | | | | | Addresses concerns raised in the two linked issues by: Casting NULL objects to Py_None within _deepcopy_call to avoid issues within CPython's deepcopy Setting _deepcopy_call to return an int code for error/success, which is then checked in array_deepcopy Closes gh-8706, gh-21883
* | Merge pull request #22037 from charris/backport-21959Charles Harris2022-07-241-1/+7
|\ \ | | | | | | BUG: Use `Popen` to silently invoke f77 -v
| * | BUG: Use `Popen` to silently invoke f77 -vMichael Osthege2022-07-241-1/+7
| |/ | | | | | | | | | | The output analyzed by this function unexpectedly ended up in stderr. Closes #21942
* | BUG: Fix subarray to object cast ownership detailsSebastian Berg2022-07-243-1/+34
|/
* Merge pull request #22034 from charris/backport-21984Charles Harris2022-07-242-0/+22
|\ | | | | MAINT,TYP: Add object-overloads for the ``np.generic`` rich comparisons
| * MAINT,TYP: Add object-overloads for the `np.generic` rich comparisonsBas van Beek2022-07-232-0/+22
| |
* | Merge pull request #22035 from charris/backport-22022Charles Harris2022-07-241-4/+4
|\ \ | | | | | | MAINT,TYP: Allow the ``squeeze`` and ``transpose`` method to take ``None`` as argument.
| * | MAINT,TYP: Allow the `squeeze` and `transpose` method to take `None` as ↵Bas van Beek2022-07-231-4/+4
| |/ | | | | | | argument (#22022)
* | Merge pull request #22031 from charris/backport-21974Charles Harris2022-07-242-6/+9
|\ \ | | | | | | MAINT, TYP: Fix `np.angle` dtype-overloads
| * | MAINT, TYP: Fix `np.angle` dtype-overloadsBas van Beek2022-07-232-6/+9
| |/
* | Merge pull request #22033 from charris/backport-21983Charles Harris2022-07-232-9/+12
|\ \ | | | | | | TYP,MAINT: Allow `einsum` subscripts to be passed via integer array-likes
| * | TYP,MAINT: Allow `einsum` subscripts to be passed via integer array-likesBas van Beek2022-07-232-9/+12
| |/
* | Merge pull request #22030 from charris/backport-21968Charles Harris2022-07-231-2/+44
|\ \ | | | | | | ENH: Add `__array_ufunc__` typing support to the `nin=1` ufuncs
| * | ENH: Add `__array_ufunc__` typing support to the `nin=1` ufuncsBas van Beek2022-07-231-2/+44
| |/
* | MAINT: Do not let `_GenericAlias` wrap the underlying classes `__class__` ↵Bas van Beek2022-07-232-1/+5
|/ | | | | | attribute Adapt to the 3.11b4 changes introduced in https://github.com/python/cpython/pull/93754
* Merge pull request #21949 from charris/backport-21896Charles Harris2022-07-081-4/+5
|\ | | | | BLD: Make can_link_svml return False for 32bit builds on x86_64
| * numpy/core/setup.py (can_link_svml): Return False for 32bit builds on x86_64Matthias Koeppe2022-07-081-4/+5
| |
* | Merge pull request #21951 from charris/backport-21946Charles Harris2022-07-081-4/+4
|\ \ | | | | | | BUG: Reorder extern "C" to only apply to function declarations in npy_math.h
| * | Reorder extern "C" to only apply to function declarations in npy_math.hserge-sans-paille2022-07-081-4/+4
| |/ | | | | | | | | | | That way incompatible included headers are not affected. Fix #21802
* | BUG: Fix KeyError in crackfortran operator supportRohit Goswami2022-07-081-1/+1
|/
* Merge pull request #21870 from charris/backport-21857Charles Harris2022-06-282-14/+39
|\ | | | | BUG: Reject non integer array-likes with size 1 in delete
| * BUG: Reject non integer array-likes with size 1 in delete (#21857)Sebastian Berg2022-06-282-14/+39
| | | | | | | | | | | | | | | | Non integer array-likes were not correctly rejected when a new fast-path was added to `np.delete` in gh-16895. This includes the _explicitly_ added `dtype=object` which should not be allowed since it is not allowed in normal indexing either. Closes gh-21840
* | Merge pull request #21866 from charris/backport-21815Charles Harris2022-06-282-2/+5
|\ \ | | | | | | BUG: Fix discovered MachAr (still used within valgrind)
| * | BUG: Fix discovered MachAr (still used within valgrind)Sebastian Berg2022-06-282-2/+5
| |/ | | | | | | | | | | | | | | | | | | This fixes the missing attributes. I tested the warning and fix on valgrind itself. These attributes were added in gh-18536 but the fallback path was not checked there. Replaces gh-21813, although something more like it may make sense if it allows us to just delete MachAr completely.
* | Merge pull request #21867 from charris/backport-21848Charles Harris2022-06-282-15/+28
|\ \ | | | | | | BUG: Handle NaNs correctly for float16 during sorting
| * | remove unusued importpostmalloc2022-06-281-1/+0
| | |
| * | parameterize and split testspostmalloc2022-06-281-39/+20
| | |
| * | Handle NaNs correctly for half-precision floatsSrimukh Sripada2022-06-282-5/+38
| |/
* | Merge pull request #21868 from charris/backport-21851Charles Harris2022-06-284-2/+23
|\ \ | | | | | | BUG: Use `keepdims` during normalization in `np.average` and `np.ma.average`.
| * | BUG: Use `keepdims` during normalization in `np.average` and `np.ma.average` ↵Srimukh Sripada2022-06-284-2/+23
| |/ | | | | | | | | | | | | | | | | (#21851) The keepdims flag needs to be applied during the calculation of the sum of the weights in np.average and np.ma.average. Not passing it causes weights to broadcast incorrectly. Fixes #21850
* | DOC: mention changes to `max_rows` behaviour in `np.loadtxt` (#21854)Pranab Das2022-06-281-2/+9
|/ | | | | * DOC: mention changes to `max_rows` behaviour * Clarify how line counting works in max_rows
* Merge pull request #21810 from charris/backport-21794Charles Harris2022-06-212-6/+6
|\ | | | | BUG: lib: A loadtxt error message had two values reversed.
| * BUG: lib: A loadtxt error message had two values reversed.warren2022-06-212-6/+6
| | | | | | | | | | | | | | | | Fix the reversed arguments to the call of PyErr_Format() that generates the exception for an invalid index in usecols. Also fix the format characters in several other calls of PyErr_Format() where the arguments are Py_ssize_t.
* | MAINT: Add a check of the return value of PyMem_Calloc().warren2022-06-211-0/+4
|/
* Revert "ENH: Implement string comparison ufuncs (or almost) "Charles Harris2022-06-1618-671/+434
|
* Merge pull request #21761 from charris/backport-21759Charles Harris2022-06-143-3/+18
|\ | | | | BUG: Fix small reference leaks found with pytest-leaks
| * TST: Clean up an opened temporary file descriptor in loadtxt testsSebastian Berg2022-06-141-0/+5
| |
| * BUG: Decref `loadtxt` converters when doneSebastian Berg2022-06-141-2/+12
| | | | | | | | | | | | Possibly they were just not incref'd in an earlier version of the code. But incref'ing seems right, so this adds the proper decref loop.
| * BUG: Fix DECREF when `__array_priority__` is None (or similar)Sebastian Berg2022-06-141-1/+1
| |
* | Merge pull request #21757 from charris/backport-21755Charles Harris2022-06-142-1/+15
|\ \ | | | | | | BUG: Do not skip value-based promotion path for large Python integers
| * | BUG: Do not skip value-based promotion path for large Python integersSebastian Berg2022-06-142-1/+15
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | When we have: 1. Only Python scalars (int, float, complex) as inputs 2. One of the integers is too large for the default integer dtype The "new" promotion path (which existed for a long time internally!) would not produce the same result as the legacy value-based path. However, my logic failed to check for the second part, so it did not run the legacy path in this odd little case. This fixes the issue reported in: https://github.com/numpy/numpy/issues/13754#issuecomment-1155126639
* | BUG, SIMD: Fix detecting NEON/ASIMD on aarch64Sayed Adel2022-06-141-1/+1
|/
* Merge pull request #21719 from charris/backport-21691Charles Harris2022-06-102-2/+6
|\ | | | | BUG: Small fixupes found using valgrind