summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | DOC:clarify differences between ravel and reshape(-1)渡邉 美希2023-05-111-4/+6
|/ / / / / / /
* | | | | | | Merge pull request #23743 from paulromano/poly-docstrings-symbolCharles Harris2023-05-106-0/+36
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | DOC: Add symbol in docstring for classes derived from ABCPolyBase
| * | | | | | | DOC: Add symbol in docstring for classes derived from ABCPolyBasePaul Romano2023-05-106-0/+36
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | A 'symbol' argument was added in ABCPolyBase in 1.24 and documented there, but the docstrings for derived classes (e.g., Polynomial) were not updated.
* | | | | | | Merge pull request #23620 from seberg/correct-zerofill-structuredCharles Harris2023-05-106-92/+202
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | MAINT: Add a proper implementation for structured zerofill
| * | | | | | MAINT: Rename `traverse_func_get` and type for clarity as per reviewSebastian Berg2023-05-101-6/+6
| | | | | | |
| * | | | | | MAINT: Add a proper implementation for structured zerofillSebastian Berg2023-04-206-92/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reorganizes the generic traversal functions for structured dtypes a bit (before it wasn't quite generic). Then uses that for zerofilling. We could get the two a bit closer by also supporting `func==NULL` explicitly for clearing. (I have not includes this here.) The old `FillObjectArray` is still in use now, this is not ideal and the new approach should be duplicated to add an "emptyfill" (same semantics, normally just memset to 0, but for objects we place an explicit `None` object). This is a necessary follow-up to gh-23591.
* | | | | | | BUG: fix the method for checking local files (#23728)Hongyang Peng2023-05-092-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BufferedReader and BufferedWriter cannot be used to determine local files. For example, users can implement CustomFile to operate on OSS files, and then use BufferedReader(CustomFile) to achieve the buffered effect. But fileno method can do it.
* | | | | | | Merge pull request #23705 from seberg/windowing-annoyanceCharles Harris2023-05-081-10/+38
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | MAINT: Reorganize the way windowing functions ensure float64 result
| * | | | | | | MAINT: Reorganize the way windowing functions ensure float64 resultSebastian Berg2023-05-031-10/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This roughly changes things so that we ensure a float64 working values up-front. There is a tiny chance of precision changes if the input was not float64 or error changes on bad input. I don't think this should matter in practice, precision changes (as far as I can tell) should happen rather the other way around. Since float64 has 53bits mantissa, I think the arange should give the correct result reliably for any sensible inputs. There is an argument to be made that the windowing functions could return float32 for float32 input, but I somewhat think this is OK and users can be expected to just cast manually after the fact. The result type is tested, but this ensures the tests pass also when enabling weak promotion.
* | | | | | | | Merge pull request #23736 from charris/fix-rtools-againCharles Harris2023-05-081-1/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | MAINT: Copy rtools installation from install-rtools.
| * | | | | | | | MAINT: Copy rtools installation from install-rtools.Charles Harris2023-05-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rtools has been causing trouble again.
* | | | | | | | | Merge pull request #23734 from DhavalParmar61/dp_devMatti Picus2023-05-081-1/+0
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Update index.rst #23732
| * | | | | | | | | Update index.rstDhavalParmar612023-05-081-1/+0
| |/ / / / / / / /
* | | | | | | | | Merge pull request #23735 from BvB93/typing_1_25Sebastian Berg2023-05-0810-40/+88
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | | TYP: Update type annotations for the numpy 1.25 release
| * | | | | | | | TYP,BUG: Add annotations for missing `max`, `min` and `round` aliasesBas van Beek2023-05-081-0/+4
| | | | | | | | |
| * | | | | | | | TYP: Re-export the `np.dtypes` namespaceBas van Beek2023-05-082-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | xref https://github.com/numpy/numpy/pull/23358
| * | | | | | | | TYP: deprecate `product`, `cumproduct`, `sometrue`, `alltrue`Bas van Beek2023-05-081-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | xref https://github.com/numpy/numpy/pull/23314
| * | | | | | | | TYP: Deprecate `np.round_`Bas van Beek2023-05-083-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | xref https://github.com/numpy/numpy/pull/23302
| * | | | | | | | TYP: Add the `np.exceptions` namespace and add `DTypePromotionError`Bas van Beek2023-05-083-21/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Xref https://github.com/numpy/numpy/pull/22644 and https://github.com/numpy/numpy/pull/22707 Update modules.pyi
| * | | | | | | | TYP: Let `np.einsum` accept `object` dtypesBas van Beek2023-05-083-9/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | xref https://github.com/numpy/numpy/pull/18053
| * | | | | | | | MAINT: Ignore test.obj filesBas van Beek2023-05-081-0/+1
|/ / / / / / / /
* | | | | | | | Merge pull request #23709 from scoder/cython3_noexceptMatti Picus2023-05-0710-38/+38
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | MAINT: Add "noexcept" markers to Cython functions that do not raise exceptions
| * | | | | | | | MAINT: Update Cython dependency to 0.29.34 (latest 0.29.x).Stefan Behnel2023-05-054-4/+4
| | | | | | | | |
| * | | | | | | | Also annotate the implementation of the kahan_sum() function, not just the ↵Stefan Behnel2023-05-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | declaration.
| * | | | | | | | Revert useless changes.Stefan Behnel2023-05-042-15/+15
| | | | | | | | |
| * | | | | | | | Merge branch 'main' into cython3_noexceptscoder2023-05-041857-79268/+254373
| |\ \ \ \ \ \ \ \
| * | | | | | | | | Add "noexcept" markers to functions that do not raise exceptions.Stefan Behnel2023-05-045-45/+45
| | | | | | | | | |
* | | | | | | | | | Merge pull request #23726 from ↵Matti Picus2023-05-071-1/+1
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | neutrinoceros/fix_numpy_testing_assert_array_less_docstring DOC: fix incorrect description of raise condition in numpy.testing.assert_array_less's docstring
| * | | | | | | | | | DOC: fix incorrect description of raise condition in ↵Clément Robert2023-05-051-1/+1
| | |_|_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | numpy.testing.assert_array_less's docstring
* | | | | | | | | | Merge pull request #23713 from seberg/uint-int-comparisonsCharles Harris2023-05-066-23/+182
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | | ENH: Make signed/unsigned integer comparisons exact
| * | | | | | | | | DOC: Add release note for uint64/int64 comparison changeSebastian Berg2023-05-041-0/+9
| | | | | | | | | |
| * | | | | | | | | ENH: Make signed/unsigned integer comparisons exactSebastian Berg2023-05-045-23/+173
| | |_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes comparisons between signed and unsigned integers exact by special-casing promotion in comparison to never promote integers to floats, but rather promote them to uint64 or int64 and use a specific loop for that purpose. This is a bit lazy, it doesn't make the scalar paths fast (they never were though) nor does it try to vectorize the loop. Thus, for cases that are not int64/uint64 already and require a cast in either case, it should be a bit slower. OTOH, it was never really fast and the int64/uint64 mix is probably faster since it avoids casting. --- Now... the reason I was looking into this was, that I had hoped it would help with NEP 50/weak scalar typing to allow: uint64(1) < -1 # annoying that it fails with NEP 50 but, it doesn't actually, because if I use int64 for the -1 then very large numbers would be a problem... I could probably(?) add a *specific* "Python integer" ArrayMethod for comparisons and that could pick `object` dtype and thus get the original Python object (the loop could then in practice assume a scalar value). --- In either case, this works, and unless we worry about keeping the behavior we probably might as well do this. (Potentially with follow-ups to speed it up.)
* | | | | | | | | Merge pull request #23725 from ↵Charles Harris2023-05-052-4/+4
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | numpy/dependabot/github_actions/github/codeql-action-2.3.3 MAINT: Bump github/codeql-action from 2.3.2 to 2.3.3
| * | | | | | | | | MAINT: Bump github/codeql-action from 2.3.2 to 2.3.3dependabot[bot]2023-05-052-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.3.2 to 2.3.3. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/f3feb00acb00f31a6f60280e6ace9ca31d91c76a...29b1f65c5e92e24fe6b6647da1eaabe529cec70f) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
* | | | | | | | | | Merge pull request #23724 from ↵Charles Harris2023-05-051-1/+1
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | numpy/dependabot/github_actions/actions/upload-artifact-3.1.2 MAINT: Bump actions/upload-artifact from 3.1.0 to 3.1.2
| * | | | | | | | | MAINT: Bump actions/upload-artifact from 3.1.0 to 3.1.2dependabot[bot]2023-05-051-1/+1
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.0 to 3.1.2. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v3.1.0...0b7f8abb1508181956e8e162db84b466c27e18ce) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
* | | | | | | | | Merge pull request #23721 from mattip/openblas-0.3.23Sebastian Berg2023-05-051-10/+9
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | BLD: update to OpenBLAS 0.3.23
| * | | | | | | | | BLD: update to OpenBLAS 0.3.23, fixmattip2023-05-051-10/+9
| | | | | | | | | |
* | | | | | | | | | Merge pull request #23714 from r-devulap/enable-ciCharles Harris2023-05-041-2/+3
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | CI: Enable CI to build with gcc-12
| * | | | | | | | | | CI: Enable CI to build with gcc-12Raghuveer Devulapalli2023-05-041-2/+3
| | | | | | | | | | |
* | | | | | | | | | | Merge pull request #23716 from charris/fix-windows-wheel-buildCharles Harris2023-05-041-2/+4
|\ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / |/| | | | | | | | | | BUG: Cannot mix ``uses`` and ``run`` in workflow script
| * | | | | | | | | | BUG: Cannot mix ``uses`` and ``run`` in workflow scriptCharles Harris2023-05-041-2/+4
|/ / / / / / / / / /
* | | | | | | | | | Merge pull request #23715 from charris/fix-32bit-windows-wheelsCharles Harris2023-05-041-1/+3
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | | MAINT, BLD: Install rtools 4.0 for Windows wheels.
| * | | | | | | | | MAINT, BLD: Install rtools 4.0 for Windows wheels.Charles Harris2023-05-041-1/+3
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rtools 4.0 is no longer installed by default for GitHub actions and versions greater than 4.1 do not support 32 bits, so explicitly include the 4.0 version. Closes #23675
* | | | | | | | | Merge pull request #23711 from seiko2plus/issue_23689Sebastian Berg2023-05-042-1/+2
|\ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / |/| | | | | | | | BUG: Fix compilation of halffloat with gcc 13.1
| * | | | | | | | Bug: Fix compilation of halffloat with gcc 13.1Sayed Adel2023-05-042-1/+2
|/ / / / / / / /
* | | | | | | | Merge pull request #23435 from r-devulap/spr-simd-sortMatti Picus2023-05-042-4/+12
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | ENH: Use AVX512 FP16 ISA for sorting float16 arrays
| * | | | | | | | ENH: Use x86-simd-sort to disptch avx512_qsort<_Float16>Raghuveer Devulapalli2023-04-051-4/+12
| | | | | | | | |
| * | | | | | | | MAINT: Update x86-simd-sort to latest commitRaghuveer Devulapalli2023-04-051-0/+0
| | | | | | | | |
* | | | | | | | | Merge pull request #23678 from charris/fix-windows-32-bit-ciCharles Harris2023-05-031-2/+3
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | MAINT: Pin rtools version on Windows.