summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | | Revert "BUG: fix ma.minimum.reduce with axis keyword"mattip2022-07-201-2/+0
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit b8c6d09208ecb7f0d83a8b06ab9e15e720f03730.
* | | | | | | | | Merge pull request #22010 from rossbar/doc/add-version-changedSebastian Berg2022-07-191-0/+5
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | | DOC: Add versionchanged for converter callable behavior.
| * | | | | | | | DOC: Add versionchanged for converter callable behavior.Ross Barnowski2022-07-191-0/+5
| | | | | | | | |
* | | | | | | | | DOC: unify `np.transpose`, `np.ndarray.transpose`, and `np.ndarray.T` (#21997)Petar Mlinarić2022-07-192-57/+64
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Better organize and improve cross referencing between the various transpose functions/methods. Co-authored-by: Rohit Goswami <r95g10@gmail.com>
* | | | | | | | Merge pull request #22008 from j-bowhay/remove_futureSebastian Berg2022-07-182-4/+0
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | MAINT: remove unneeded `__future__` imports
| * | | | | | | | remove unneeded future importsJake Bowhay2022-07-172-4/+0
| | |/ / / / / / | |/| | | | | |
* | | | | | | | DOC: add links to `linalg` in docs of `dot` and `matmul` (#22002)Petar Mlinarić2022-07-182-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | Add links to `linalg` explaining BLAS
* | | | | | | | Merge pull request #22004 from seberg/ragged-dep-finalizeMatti Picus2022-07-184-140/+12
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | DEP: Finalize ragged array creation deprecation
| * | | | | | | | DEP: Finalize ragged array creation deprecationSebastian Berg2022-07-174-140/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This finalizes all DeprcationWarnings related to the creation of object arrays from nested lists enforcing that users use `dtype=object` if this is intentional.
* | | | | | | | | BUG: Avoid errors on NULL during deepcopy (#21996)Jon Cusick2022-07-172-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
* | | | | | | | ENH,MAINT: Add overflow handling for negative integers scalar multiplication ↵Meekail Zain2022-07-1712-28/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#21793) Remane `npy_mul_with_overflow_intp` to `npy_mul_sizes_with_overflow` as it only allows positive numbers. Then introduce new versions for all integers (not intp) to use it for the integer scalar math with overflow detection. (It is OK to use everywhere, just for sizes we know they will be positive normally.) Related to #21506 Follow-up to #21648
* | | | | | | | BUG: Fix masked median multiple masked arrays (#21999)Brigitta Sipőcz2022-07-172-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed issue that occurs when trying to take the median of a list of masked arrays. Added a check to see if the input is a list then converts to a masked array. See issue #10757 for more information. Co-authored-by: jsclose <jsclose@umich.edu>
* | | | | | | | Merge pull request #21991 from tylerjereddy/treddy_rm_old_warningMatti Picus2022-07-171-4/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | MAINT: rm old warning
| * | | | | | | | MAINT: rm old warningTyler Reddy2022-07-161-4/+1
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * if you believe the comments that this warning suppression should be safe to remove after `1.16`, then it should be safe to remove now?
* | | | | | | | Merge pull request #21993 from rcomer/ma-minimum-fixMatti Picus2022-07-172-0/+14
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | BUG: fix ma.minimum.reduce with axis keyword
| * | | | | | | | BUG: fix ma.minimum.reduce with axis keywordRuth Comer2022-07-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes the problem reported at https://github.com/numpy/numpy/pull/21977#issuecomment-1186082534 The reduce method here effectively calls itself with an unmasked MaskedArray (mask=nomask) and then expects either a MaskedArray or a scalar. This change ensures that an ordinary ndarray is converted to a MaskedArray, following the pattern already used in mean and var in this module.
| * | | | | | | | TST: add a test for ma.minimum.reduce with axis keywordRuth Comer2022-07-161-0/+12
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adapted from the problem reported at https://github.com/numpy/numpy/pull/21977#issuecomment-1186082534
* | | | | | | | Merge pull request #21984 from BvB93/comparisonMatti Picus2022-07-172-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-142-0/+22
| | | | | | | | |
* | | | | | | | | DOC: clarify `frombuffer` and `ndarray.tobytes` are inverse operationsNoritada Kobayashi2022-07-171-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks for suggestions from @mattip .
* | | | | | | | | DOC: cross-reference descriptions of `frombuffer` and `ndarray.tobytes`Noritada Kobayashi2022-07-161-0/+9
| |/ / / / / / / |/| | | | | | |
* | | | | | | | Removed two unused importsCallum O'Riley2022-07-142-2/+0
| | | | | | | |
* | | | | | | | Merge pull request #21977 from greglucas/masked_ufuncMatti Picus2022-07-145-48/+259
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | ENH: Adding __array_ufunc__ capability to MaskedArrays
| * | | | | | | | nomask in nomask outRuth Comer2022-07-131-2/+2
| | | | | | | | |
| * | | | | | | | TST: Adding a test that MaskedArrays respect ufunc deferral heirarchyGreg Lucas2022-07-131-0/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test makes sure that a MaskedArray defers properly to another class if it doesn't know how to handle it. See #15200.
| * | | | | | | | ENH: Adding __array_ufunc__ capability to MaskedArrays.Greg Lucas2022-07-134-48/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables any ufunc numpy operations that are called on a MaskedArray to use the masked version of that function automatically without needing to resort to np.ma.func() calls.
* | | | | | | | | Merge pull request #21983 from BvB93/einsumMatti Picus2022-07-142-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-142-9/+12
| |/ / / / / / /
* | | | | | | | Merge pull request #21982 from BvB93/aliasMatti Picus2022-07-142-1/+5
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | MAINT: Do not let `_GenericAlias` wrap the underlying classes `__class__` attribute
| * | | | | | | | MAINT: Do not let `_GenericAlias` wrap the underlying classes `__class__` ↵Bas van Beek2022-07-142-1/+5
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | attribute Adapt to the 3.11b4 changes introduced in https://github.com/python/cpython/pull/93754
* | | | | | | | BUG: Fix experimental dtype slot numbersSebastian Berg2022-07-132-5/+6
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unfortunately, I forgot to move them around when introducing ensure_canonical, but the code relies on the order for simplicitly currently... Which doesn't matter, just means that the DType part of the experimental ufunc API is completely unusable in 1.23 right now.
* | | | | | | Merge pull request #21925 from seberg/subarray-object-castCharles Harris2022-07-123-1/+34
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | BUG: Fix subarray to object cast ownership details
| * | | | | | | BUG: Fix subarray to object cast ownership detailsSebastian Berg2022-07-053-1/+34
| | | | | | | |
* | | | | | | | Merge pull request #21968 from BvB93/array_ufunc2Charles Harris2022-07-121-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-111-2/+44
| | | | | | | | |
* | | | | | | | | Merge pull request #21974 from BvB93/angleCharles Harris2022-07-122-6/+9
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | MAINT, TYP: Fix `np.angle` dtype-overloads
| * | | | | | | | | MAINT, TYP: Fix `np.angle` dtype-overloadsBas van Beek2022-07-122-6/+9
| |/ / / / / / / /
* | | | | | | | | DOC: correct docstring for numpy.correlate()Ari Cooper Davis2022-07-121-1/+1
| |_|/ / / / / / |/| | | | | | |
* | | | | | | | Merge pull request #21943 from joaopfg/fix/error-messageMatti Picus2022-07-121-1/+6
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | DOC, MAINT: Document the C-API incompatibility error and point the error message to this doc.
| * | | | | | | | Fixing formatting problemjoaopfg2022-07-071-3/+3
| | | | | | | | |
| * | | | | | | | Fixing too long linesjoaopfg2022-07-071-2/+4
| | | | | | | | |
| * | | | | | | | Adding docs about the C-API incompatibility error and pointing to the docs ↵joaopfg2022-07-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in the error
| * | | | | | | | Adding docs about the C-API incompatibility error and pointing to the docs ↵joaopfg2022-07-071-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in the error
* | | | | | | | | Merge pull request #21959 from michaelosthege/issue-21942Ralf Gommers2022-07-121-1/+7
|\ \ \ \ \ \ \ \ \ | |_|/ / / / / / / |/| | | | | | | | BUG: Use `Popen` to silently invoke f77 -v
| * | | | | | | | BUG: Use `Popen` to silently invoke f77 -vMichael Osthege2022-07-091-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The output analyzed by this function unexpectedly ended up in stderr. Closes #21942
* | | | | | | | | Merge pull request #21856 from bramton/mainCharles Harris2022-07-101-3/+7
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | DOC: Mention uniform in the np.random.Generator.random function.
| * | | | | | | | | MAINT: Small fixupsCharles Harris2022-07-101-3/+3
| | | | | | | | | |
| * | | | | | | | | Links suddenly workingBram2022-07-081-2/+2
| | | | | | | | | |
| * | | | | | | | | Forgot backticksBram2022-06-291-1/+1
| | | | | | | | | |
| * | | | | | | | | Corrected reference to uniform()Bram2022-06-291-2/+2
| | | | | | | | | |