Skip to content

refactor: define common nplike method to get pointer to memory#3565

Merged
pfackeldey merged 1 commit intomainfrom
pfackeldey/memory_ptr
Jul 6, 2025
Merged

refactor: define common nplike method to get pointer to memory#3565
pfackeldey merged 1 commit intomainfrom
pfackeldey/memory_ptr

Conversation

@pfackeldey
Copy link
Collaborator

Defines a memory_ptr function for each nplike and thus unifies their interface throughout the codebase (as suggested in #3413).

Closes #3413

@ikrommyd
Copy link
Collaborator

ikrommyd commented Jul 3, 2025

@pfackeldey I like this abstraction a lot actually!

Copy link
Member

@ianna ianna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pfackeldey - This is great! Thanks for cleaning it up!

@ianna
Copy link
Member

ianna commented Jul 6, 2025

@pfackeldey - please feel free to merge it if you are done with it. Thanks!

@pfackeldey pfackeldey merged commit 9dc0eca into main Jul 6, 2025
43 checks passed
@pfackeldey pfackeldey deleted the pfackeldey/memory_ptr branch July 6, 2025 17:13
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.

ctypes abstraction is not scoped to NumPy only

3 participants