summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #22786 from asmeurer/linalg-namedtuplesHEADmainCharles Harris2023-05-175-174/+243
|\ | | | | ENH: Add namedtuple return types to linalg functions that return tuples
| * TYP: Update type annotations for the new linalg named tuplesBas van Beek2023-05-173-51/+66
| |
| * MAINT: Update numpy/linalg/linalg.pyCharles Harris2023-05-171-1/+1
| | | | | | Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com>
| * Fix a doctestAaron Meurer2022-12-131-1/+1
| |
| * Add a changelog entry for #22786Aaron Meurer2022-12-121-0/+8
| |
| * Add namedtuple return types to linalg functions that return tuplesAaron Meurer2022-12-122-133/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | That is, eig(), eigh(), qr(), slogdet(), and svd(). For those functions that return non-tuples with certain keyword arguments, the return type is unchanged. This change should be completely backwards compatible. The namedtuple attribute names come from the array API specification (see, e.g., https://data-apis.org/array-api/latest/extensions/generated/signatures.linalg.eigh.html), with the exception of eig() which is just the same as eigh(). The name of the namedtuple object itself is not part of the specification or the public API. I have not used a namedtuple for the tuple output for qr(mode='raw'), which returns (h, tau). This updates the docstrings to use the updated namedtuple return names, and also the examples to use those names more consistently. This also updates the tests to check each function for the namedtuple attributes at least once.
* | Merge pull request #23505 from cbrt64/fix-2256Matti Picus2023-05-172-7/+14
|\ \ | | | | | | BUG: Use 2GiB chunking code for fwrite() on mingw32/64
| * | MAINT: Use fwrite chunking generally on Windows 64 and size_t as typeSebastian Berg2023-05-161-6/+9
| | | | | | | | | | | | | | | | | | | | | This is a bit too broad because msys UCRT runtime may actually not need it. Changes the type in the loop to `size_t`. This is not necessary but the current constants are buggy without it if the branch is accidentally used on 32bit.
| * | BUG: Use 2GiB chunking code for fwrite() on mingw32/64Edward E2023-03-312-4/+8
| | | | | | | | | | | | Addresses #2256
* | | Merge pull request #23763 from seberg/nep50-fixes-part2Charles Harris2023-05-163-3/+86
|\ \ \ | | | | | | | | BUG: Fix weak scalar logic for large ints in ufuncs
| * | | MAINT: Fix typo in commentSebastian Berg2023-05-151-1/+1
| | | |
| * | | MAINT: Address Marten's reviewSebastian Berg2023-05-152-5/+17
| | | |
| * | | BUG: Fix weak scalar logic for large ints in ufuncsSebastian Berg2023-05-153-3/+74
| | | | | | | | | | | | | | | | | | | | This fixes it, breaks warnings (partially), but most or all of those paths should be errors anyway.
* | | | Merge pull request #23769 from ngoldbaum/resulttype-docSebastian Berg2023-05-161-23/+7
|\ \ \ \ | | | | | | | | | | DOC: clarify how inputs of PyArray_ResultType are used
| * | | | DOC: delete out-of-date description of ResultType algorithmNathan Goldbaum2023-05-161-20/+4
| | | | |
| * | | | DOC: clarify how inputs of PyArray_ResultType are usedNathan Goldbaum2023-05-161-5/+5
| | | | |
* | | | | Merge pull request #23659 from seberg/issue-23029Charles Harris2023-05-162-2/+102
|\ \ \ \ \ | |/ / / / |/| | | | ENH: Restore TypeError cleanup in array function dispatching
| * | | | MAINT: Seems it should be -1 direction for matching a prefixSebastian Berg2023-04-251-2/+2
| | | | | | | | | | | | | | | | | | | | Not that it mattered, but docs say direction should be either -1 or 1
| * | | | BUG: Add missing decref's of replaced error.Sebastian Berg2023-04-251-0/+3
| | | | |
| * | | | TST: Skip test on older Python versions which use `__name__`Sebastian Berg2023-04-251-0/+6
| | | | |
| * | | | ENH: Restore TypeError cleanup in array function dispatchingSebastian Berg2023-04-252-2/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the dispathcer raises a TypeError and it starts with the dispatchers name (or actually __qualname__ not that it normally matters), then it is nicer for users if we just raise a new error with the public symbol name. Python does not seem to normalize exception and goes down the unicode path, but I assume that e.g. PyPy may not do that. And there might be other weirder reason why we go down the full path. I have manually tested it by forcing Normalization. Closes gh-23029
* | | | | Merge pull request #23768 from BvB93/genfromtxtSebastian Berg2023-05-162-6/+6
|\ \ \ \ \ | | | | | | | | | | | | TYP: Relax the `genfromtxt` return dtype when the dtype is unspecified
| * | | | | TYP: Relax the `genfromtxt` return dtype when the dtype is unspecifiedBas van Beek2023-05-162-6/+6
|/ / / / /
* | | | | Merge pull request #23765 from ngoldbaum/fix-compiler-warningsCharles Harris2023-05-152-2/+2
|\ \ \ \ \ | | | | | | | | | | | | MAINT: fix signed/unsigned int comparison warnings
| * | | | | MAINT: fix signed/unsigned int comparison warningsNathan Goldbaum2023-05-152-2/+2
|/ / / / /
* | | | | Merge pull request #23665 from r-devulap/update-simd-sortCharles Harris2023-05-151-0/+0
|\ \ \ \ \ | | | | | | | | | | | | ENH: Speed up 64-bit qsort by 1.6x
| * | | | | ENH: Speed up 64-bit qsort by 1.6xRaghuveer Devulapalli2023-05-141-0/+0
| | |/ / / | |/| | |
* | | | | Merge pull request #23750 from ngoldbaum/replace-copyswapnSebastian Berg2023-05-151-15/+91
|\ \ \ \ \ | |/ / / / |/| | | | MAINT: do not use copyswapn in array sorting internals
| * | | | MAINT: do not use copyswapn in array sorting internalsNathan Goldbaum2023-05-121-15/+91
| | | | |
* | | | | Merge pull request #23727 from F3eQnxN3RriK/doc-patch-2Charles Harris2023-05-141-15/+13
|\ \ \ \ \ | | | | | | | | | | | | DOC: Rewrite docstrings of `ogrid` and `mgrid`
| * | | | | DOC: Rewrite docstrings of `ogrid` and `mgrid`Yuki2023-05-061-15/+13
| | | | | | | | | | | | | | | | | | | | | | | | Removed references to `nd_grid` instead of adding a document (gh-23612).
* | | | | | Merge pull request #23758 from tacaswell/fix/cython3Matti Picus2023-05-142-8/+7
|\ \ \ \ \ \ | | | | | | | | | | | | | | MAINT: compatibility with cython3
| * | | | | | MNT: compatibility with cython3Thomas A Caswell2023-05-132-8/+7
|/ / / / / / | | | | | | | | | | | | | | | | | | This is fallout from https://github.com/cython/cython/pull/5386
* | | | | | Merge pull request #22539 from seberg/deprecate-find-common-typeCharles Harris2023-05-1313-37/+106
|\ \ \ \ \ \ | | | | | | | | | | | | | | DEP: Deprecate `np.find_common_type`
| * | | | | | MAINT: Remove ``find_common_type`` export.Charles Harris2023-05-131-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove `find_common_type` export from `numpy/__init__.pyi`.
| * | | | | | Merge branch 'main' into deprecate-find-common-typeCharles Harris2023-05-13786-16889/+31161
| |\ \ \ \ \ \ | |/ / / / / / |/| | | | | |
* | | | | | | Merge pull request #23746 from mattip/scalar-strCharles Harris2023-05-133-3/+52
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | ENH: add fast path for str(scalar_int)
| * | | | | | | BUG: typo, lintingmattip2023-05-113-2/+3
| | | | | | | |
| * | | | | | | add fast path for str(scalar_int)mattip2023-05-103-2/+50
| | | | | | | |
* | | | | | | | BUG: properly handle tuple keys in NpZFile.__getitem__ (#23757)Nathan Goldbaum2023-05-122-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * BUG: properly handle tuple keys in NpZFile.__getitem__ * TST: test tuple rendering specifically. --------- Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* | | | | | | | Merge pull request #23599 from HaoZeke/f2pyEndIfFixCharles Harris2023-05-123-3/+22
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | BUG: Fix crackfortran groups for endifs with comments
| * | | | | | | | MAINT: Fix merge errorRohit Goswami2023-05-121-13/+0
| | | | | | | | |
| * | | | | | | | BUG: Fix matching endifs with commentsRohit Goswami2023-05-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Harmonizes patterns a bit as well
| * | | | | | | | TST: Add a test for gh-23533Rohit Goswami2023-05-122-0/+32
| | | | | | | | |
* | | | | | | | | Merge pull request #23756 from rossbar/rm-bool8-docsSebastian Berg2023-05-122-3/+1
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | | DOC: Rm bool8 from docs
| * | | | | | | | DOC: Rm bool8 alias from _add_newdoc_for_scalar.Ross Barnowski2023-05-121-1/+1
| | | | | | | | |
| * | | | | | | | DOC: rm bool8 from scalars summary page.Ross Barnowski2023-05-121-2/+0
|/ / / / / / / /
* | | | | | | | Merge pull request #23753 from charris/disable-spr-on-clangCharles Harris2023-05-121-0/+4
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | MAINT, BLD: Disable spr for clang
| * | | | | | | | MAINT, BLD: Disable spr for clangCharles Harris2023-05-111-0/+4
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clang has a bug and fails when compiling `simd_qsort_16bit.dispatch.avx512_spr.cpp` Closes #23730.
* | | | | | | | Merge pull request #23747 from MikiPWata/DOC/clarify_ravel_vs_reshapeMatti Picus2023-05-121-4/+6
|\ \ \ \ \ \ \ \ | |_|_|_|/ / / / |/| | | | | | | DOC: clarify differences between ravel and reshape(-1)