8000 ENH: Add support for copy modes to NumPy by czgdp1807 · Pull Request #19173 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH: Add support for copy modes to NumPy #19173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 65 commits into from
Nov 15, 2021
Merged
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
496bd1a
Added np.CopyMode
czgdp1807 Jun 5, 2021
3a3d31b
initial work for supporting never_copy
czgdp1807 Jun 5, 2021
be5823f
Addressed reviews and PyArray_CopyConverter defined
czgdp1807 Jun 7, 2021
e16f3ff
np.CopyMode.NEVER gives error if copy cannot be avoided in np.array.a…
czgdp1807 Jun 7, 2021
645fadb
Updated API ready for formal testing
czgdp1807 Jun 7, 2021
8538720
tests for astype added
czgdp1807 Jun 7, 2021
8c00223
Added tests for np.array
czgdp1807 Jun 7, 2021
4e59da1
Testing for copy argument for existing APIs complete
czgdp1807 Jun 7, 2021
6f0f6ac
resolved conflicts
czgdp1807 Jun 7, 2021
6bff3dd
Added some notes for future commits
czgdp1807 Jun 8, 2021
a90880a
RuntimeError -> ValueError
czgdp1807 Jun 8, 2021
5481a8a
enum.IntEnum -> enum.Enum
czgdp1807 Jun 8, 2021
f2e7a81
aligned astype with main branch
czgdp1807 Jun 8, 2021
e828f15
Add tests for scalars
czgdp1807 Jun 8, 2021
1a92ae9
Merge branch 'main' into never_copy
czgdp1807 Jun 8, 2021
91d6693
resolved linting issues
czgdp1807 Jun 8, 2021
7b53a02
Fixed blank line linting issue
czgdp1807 Jun 8, 2021
eedb300
Apply suggestions from code review
czgdp1807 Jun 9, 2021
bc8903d
renaming complete
czgdp1807 Jun 9, 2021
3268a48
fixed failures due to Python 3.8.2
czgdp1807 Jun 9, 2021
ab01330
Merge branch 'main' into never_copy
czgdp1807 Jun 9, 2021
782d823
fixed PYPY errors
czgdp1807 Jun 10, 2021
342e0c5
removed complicated checks for copy_mode
czgdp1807 Jun 10, 2021
a09929b
Merge branch 'main' into never_copy
czgdp1807 Jun 15, 2021
30e3472
interface shifted
czgdp1807 Jun 15, 2021
a6caf9c
Apply suggestions from code review
czgdp1807 Jun 15, 2021
3dcf3a9
resolved conflicts
czgdp1807 Aug 6, 2021
321e028
Shifted to CopyMode to np.array_api
czgdp1807 Aug 7, 2021
844883c
corrected linting issues
czgdp1807 Aug 7, 2021
d995ecc
resolved conflicts
czgdp1807 Aug 7, 2021
0f8d4c5
fixed linting issues
czgdp1807 Aug 7, 2021
698fb6d
Made _CopyMode private
czgdp1807 Aug 18, 2021
b341e4c
Fixed linting issues
czgdp1807 Aug 18, 2021
781d0a7
resolved conflicts
czgdp1807 Sep 3, 2021
45dbdc9
CopyMode added to np.array_api
czgdp1807 Sep 3, 2021
a39312c
fixed linting issues
czgdp1807 Sep 3, 2021
c2acd5b
fixed linting issues
czgdp1807 Sep 3, 2021
56647dd
Addressed reviews
czgdp1807 Sep 4, 2021
c04509e
resolved conflicts
czgdp1807 Nov 2, 2021
790f927
Addressed reviews
czgdp1807 Nov 2, 2021
2677788
Fixed type check
czgdp1807 Nov 2, 2021
d9a9785
Addressed reviews and increased code coverage
czgdp1807 Nov 4, 2021
5cb2d64
Addressed reviews and increased code coverage
czgdp1807 Nov 9, 2021
8b939c9
Intentional RuntimeError
czgdp1807 Nov 9, 2021
7658ad9
Removed dead code
czgdp1807 Nov 10, 2021
2cf561b
Prohibited calling ``__array__`` method in never copy mode
czgdp1807 Nov 10, 2021
37cd05e
Fixed warning and updated docs
czgdp1807 Nov 10, 2021
9f9a348
Apply suggestions from code review
czgdp1807 Nov 10, 2021
946ab24
Updated docs
czgdp1807 Nov 10, 2021
2c51b0a
Merge branch 'never_copy' of https://github.com/czgdp1807/numpy into …
czgdp1807 Nov 10, 2021
5ede7eb
Added release notes entry
czgdp1807 Nov 10, 2021
d1cb662
L[0]->L[False], L[1]->L[True]
czgdp1807 Nov 10, 2021
6c01915
Deleted release notes entry
czgdp1807 Nov 10, 2021
5f1965f
do_copy -> allow_copy
czgdp1807 Nov 10, 2021
05ff102
Apply suggestions from code review
czgdp1807 Nov 10, 2021
68dfa4b
Merge branch 'never_copy' of https://github.com/czgdp1807/numpy into …
czgdp1807 Nov 10, 2021
2db65c9
Addressed reviews
czgdp1807 Nov 10, 2021
d0d75f3
Reverted dead code removal
czgdp1807 Nov 10, 2021
eccb8df
Merge branch 'main' into never_copy
rgommers Nov 12, 2021
10000
4b2cd27
STY: Small style fixups for never-copy changes
seberg Nov 12, 2021
84951a6
MAINT: Remove private CopyMode enum to private header
seberg Nov 12, 2021
f31c4a6
MAINT,BUG: Refactor __array__ and never-copy to move check later
seberg Nov 12, 2021
dea4055
MAINT: Rename `allow_copy` to `never_copy` in never-copy machinery
seberg Nov 12, 2021
9fee0f8
DOC: Slightly extend to docs to note that we assume no-copy buffer pr…
seberg Nov 12, 2021
f058aea
BUG: Fix refcounting issue and missed scalar special case for never-c…
seberg Nov 12, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
resolved conflicts
  • Loading branch information
czgdp1807 committed Nov 2, 2021
commit c04509e86e97a69a0b5fcbeebdbec66faad3dbe0
4 changes: 3 additions & 1 deletion numpy/core/multiarray.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ from numpy import (
_ModeKind,
_SupportsBuffer,
_IOProtocol,
_CopyMode
_CopyMode,
_NDIterFlagsKind,
_NDIterOpFlagsKind,
)

from numpy.typing import (
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0