summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Bump hypothesis from 6.21.1 to 6.21.6dependabot/pip/hypothesis-6.21.6dependabot[bot]2021-09-201-1/+1
| | | | | | | | | | | | | | Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.21.1 to 6.21.6. - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.21.1...hypothesis-python-6.21.6) --- updated-dependencies: - dependency-name: hypothesis dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
* Merge pull request #19900 from ArryanSingh/refguidefixMelissa Weber Mendonça2021-09-202-14/+11
|\ | | | | DOC: Fixed refguide errors for basics.creation.rst
| * DOC:Fixed refguide errors for basics.creation.rstArryan Singh2021-09-202-14/+11
| |
* | Merge pull request #19894 from BvB93/recursive-sequenceCharles Harris2021-09-2016-288/+243
|\ \ | | | | | | ENH: Add a typing protocol for representing nested sequences
| * | TST: Added tests for `NestedSequence`Bas van Beek2021-09-192-0/+40
| | |
| * | MAINT: Replace the old `_NestedSequence` union and remove `_RecursiveSequence`Bas van Beek2021-09-1913-288/+109
| | |
| * | ENH: Add a protocol for representing nested sequencesBas van Beek2021-09-192-0/+94
| |/
* | Merge pull request #19902 from HaoZeke/refgfix_ignoreMelissa Weber Mendonça2021-09-201-0/+1
|\ \ | |/ |/| BUG,DOC: Ignore upcoming_changes from refguide
| * BUG,DOC: Ignore upcoming_changes from refguideRohit Goswami2021-09-201-0/+1
|/
* Merge pull request #19888 from WarrenWeckesser/emptylikezerostridesCharles Harris2021-09-182-0/+26
|\ | | | | BUG: core: Fix *_like strides for str and bytes dtype.
| * BUG: core: Fix *_like strides for str and bytes dtype.warren2021-09-172-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a user passed a noncontiguous array to empty_like (or any other _like function) with dtype=str or dtype=bytes, the returned array would have strides that were all 0, even though the data type was 'U1' or 'S1'. The problem was in the C code in the function PyArray_NewLikeArrayWithShape. Because the default order is "keep", the branch with the comment /* KEEPORDER needs some analysis of the strides */ was taken. That branch uses the itemsize (i.e. dtype->elsize) of the requested dtype, but for str or bytes, that itemsize is 0, so the computed strides end up being 0. It is in the subsequent call to PyArray_NewFromDescr_int that the itemsize is updated to be nonzero. The fix is to use the same check for str or bytes that is used in PyArray_NewFromDescr_int in PyArray_NewLikeArrayWithShape to figure out the itemsize when computing the strides in the KEEPORDER branch. Closes gh-19860.
* | Merge pull request #19887 from BvB93/linalgCharles Harris2021-09-184-21/+450
|\ \ | | | | | | ENH: Add annotations for `np.linalg`
| * | MAINT: Let `eig` and `eigvals` return a union for real inputsBas van Beek2021-09-182-9/+17
| | | | | | | | | | | | | | | | | | Whether an array of a `floating` or `complexfloating` dtype is returned depends on the values within in the supplied matrix. Co-Authored-By: Kevin Sheppard <bashtage@users.noreply.github.com>
| * | TST: Add typing tests for `np.linalg`Bas van Beek2021-09-172-0/+145
| | |
| * | ENH: Add annotations for `np.linalg`Bas van Beek2021-09-171-20/+274
| | |
| * | MAINT: Move `linalg` function definitions to `linalg.linalg`Bas van Beek2021-09-172-21/+43
| |/
* | Merge pull request #19890 from TheDeveloperTeam/mainCharles Harris2021-09-181-1/+1
|\ \ | | | | | | Added hyperlink on numpy logo
| * | Added hyperlink on numpy logoFayas Noushad2021-09-181-1/+1
|/ /
* | Merge pull request #19884 from kmod/support_pystonSebastian Berg2021-09-171-11/+6
|\ \ | |/ |/| TST: Make this sysconfig handling a bit more portable
| * TST: Make this sysconfig handling a bit more portableKevin Modzelewski2021-09-171-11/+6
|/ | | | | | | | In particular this supports Pyston, which has an additional format field in these path schemes. Instead of manually specifying which fields we think exist, do what I assume is the intention of using the default field values for everything except for the few that we want to override.
* Merge pull request #19844 from Mukulikaa/c-api-additionsCharles Harris2021-09-161-14/+61
|\ | | | | DOC: Added missing C-API functions
| * Update doc/source/reference/c-api/array.rstCharles Harris2021-09-131-1/+1
| | | | | | Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
| * DOC: Added missing C-API functionsMukulika2021-09-081-14/+61
| | | | | | | | | | | | | | | | 1. PyArray_CopyObject 2. PyArray_MapIterArray 3. PyArray_MapIterSwapAxes 4. PyArray_MapIterNext 5. PyArray_MapIterArrayCopyIfOverlap
* | Merge pull request #19865 from Mukulikaa/internals-doc-reorgCharles Harris2021-09-168-871/+954
|\ \ | | | | | | DOC: Moved NumPy Internals to Under-the-hood documentation for developers
| * | DOC: Moved NumPy Internals into Under-the-hood docsMukulika2021-09-138-871/+954
| | |
* | | Merge pull request #19882 from nforro/mainCharles Harris2021-09-161-5/+5
|\ \ \ | | | | | | | | MAINT: Use SHA-256 instead of SHA-1
| * | | MAINT: Use SHA-256 instead of SHA-1Nikola Forró2021-09-161-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While the use of SHA-1 here hardly poses any risks, its use will eventually be prohibited globally in FIPS-compliant operating systems such as RHEL, and I don't see any downsides in moving away from using it. Signed-off-by: Nikola Forró <nforro@redhat.com>
* | | | Merge pull request #19883 from BvB93/moduleCharles Harris2021-09-161-0/+2
|\ \ \ \ | |/ / / |/| | | DOC: Fix the reported module names of objects in the `numpy.typing` API
| * | | DOC: Fix the module names of `numpy.typing` objectsBas van Beek2021-09-161-0/+2
|/ / /
* | | Merge pull request #19869 from mhvk/median_scalar_nanCharles Harris2021-09-144-25/+32
|\ \ \ | | | | | | | | BUG: ensure np.median does not drop subclass for NaN result.
| * | | MAINT: Improve ``_median_nancheck`` docstring.Charles Harris2021-09-141-1/+1
| | | |
| * | | MAINT: remove unused argument in private functionMarten van Kerkwijk2021-09-143-16/+15
| | | |
| * | | BUG: ensure np.median does not drop subclass for NaN result.Marten van Kerkwijk2021-09-142-8/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, np.median is almost completely safe for subclasses, except if the result is NaN. In that case, it assumes the result is a scalar and substitutes a NaN with the right dtype. This PR fixes that, since subclasses like astropy's Quantity generally use array scalars to preserve subclass information such as the unit.
* | | | Merge pull request #19874 from ndunnewind/fix-typo-upcoming-changes-filenameCharles Harris2021-09-141-0/+0
|\ \ \ \ | |/ / / |/| | | DOC: Fix typo in upcoming changes filename
| * | | DOC: Fix typo in upcoming changes filenameNiels Dunnewind2021-09-141-0/+0
|/ / /
* | | Merge pull request #19863 from BvB93/nanquantileCharles Harris2021-09-132-80/+117
|\ \ \ | | | | | | | | BUG: Fix `nanpercentile` ignoring the dtype of all-nan arrays
| * | | MAINT: Make parameters match label.Charles Harris2021-09-131-1/+1
| | | |
| * | | TST: Fix a couple of `pytest` id labelsBas van Beek2021-09-131-3/+3
| | | | | | | | | | | | | | | | Co-Authored-By: Charles Harris <charlesr.harris@gmail.com>
| * | | TST: Expand/rewrite the `test_allnans` testsBas van Beek2021-09-111-79/+115
| | | | | | | | | | | | | | | | Parametrize w.r.t. the axis, array dimensionality and dtype
| * | | BUG: Fixed an issue wherein `nanpercentile` and `nanquantile` would ignore ↵Bas van Beek2021-09-111-1/+2
| |/ / | | | | | | | | | the dtype for all-nan arrays
* | | Merge pull request #19870 from seberg/fixups-release-walkthroughCharles Harris2021-09-131-3/+3
|\ \ \ | | | | | | | | DOC: Small fixups for the release walkthrough
| * | | BUG: Fix use of ``*.md``.Charles Harris2021-09-131-1/+1
| | | |
| * | | DOC: Small fixups for the release walkthroughSebastian Berg2021-09-131-2/+2
|/ / / | | | | | | | | | Silence CI failures due to small rst issues.
* | | Merge pull request #19868 from numpy/dependabot/pip/sphinx-4.2.0Charles Harris2021-09-131-1/+1
|\ \ \ | | | | | | | | MAINT: Bump sphinx from 4.1.2 to 4.2.0
| * | | MAINT: Bump sphinx from 4.1.2 to 4.2.0dependabot/pip/sphinx-4.2.0dependabot[bot]2021-09-131-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.1.2 to 4.2.0. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES) - [Commits](https://github.com/sphinx-doc/sphinx/compare/v4.1.2...v4.2.0) --- updated-dependencies: - dependency-name: sphinx dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* | | Merge pull request #19867 from numpy/dependabot/pip/hypothesis-6.21.1Charles Harris2021-09-131-1/+1
|\ \ \ | | | | | | | | MAINT: Bump hypothesis from 6.18.0 to 6.21.1
| * | | MAINT: Bump hypothesis from 6.18.0 to 6.21.1dependabot/pip/hypothesis-6.21.1dependabot[bot]2021-09-131-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.18.0 to 6.21.1. - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.18.0...hypothesis-python-6.21.1) --- updated-dependencies: - dependency-name: hypothesis dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* | | Merge pull request #19862 from charris/add-branch-walkthroughCharles Harris2021-09-131-0/+77
|\ \ \ | | | | | | | | DOC: Add BRANCH_WALKTHROUGH
| * | | DOC: Add BRANCH_WALKTHROUGHCharles Harris2021-09-101-0/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a walkthrough for making a new maintenance branch, command by command. [skip ci]
* | | | Merge pull request #19864 from charris/update-release-walkthroughCharles Harris2021-09-131-101/+105
|\ \ \ \ | |_|/ / |/| | | DOC: Update RELEASE_WALKTHROUGH