Skip to content

Add protocols for array object methods#69

Open
NeilGirdhar wants to merge 8 commits into
data-apis:mainfrom
NeilGirdhar:array-protocols
Open

Add protocols for array object methods#69
NeilGirdhar wants to merge 8 commits into
data-apis:mainfrom
NeilGirdhar:array-protocols

Conversation

@NeilGirdhar

Copy link
Copy Markdown
Contributor

Once you finish #34, could someone take a look this? @jorenham @lucascolley @nstarman

Add protocols for array object methods:

  • DLPack export via HasDLPack
  • Indexing via HasGetItem
  • Indexed assignment via HasSetItem
  • Device transfer via HasToDevice

Also composes these protocols into Array, exports them from the
top-level package, and adds NumPy integration assignments for the new
protocol surfaces.

nstarman and others added 8 commits August 19, 2025 19:22
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
Signed-off-by: Nathaniel Starkman <nstarman@users.noreply.github.com>
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
- DLPack export via `HasDLPack`
- Indexing via `HasGetItem`
- Indexed assignment via `HasSetItem`
- Device transfer via `HasToDevice`

Also composes these protocols into `Array`, exports them from the
top-level package, and adds NumPy integration assignments for the new
protocol surfaces.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants