Skip to content

Conversation

Enderdead
Copy link
Contributor

This merge request is about delegate functions (#100).
The expand_dims delegate function is introduced here. It is meant to support a sequence of integers rather than a single integer (as specified in the standard array API) for the axis parameter.

I found that NumPy, JAX, and Dask support this feature, but PyData Sparse, Torch (with unsqueeze), and CuPy only accept a single integer.

Available for feedback!

@lucascolley lucascolley changed the title ENH: expand_dims ENH: expand_dims delegation Oct 2, 2025
@lucascolley lucascolley added this to the 0.9.1 milestone Oct 2, 2025
@lucascolley lucascolley added enhancement New feature or request delegation labels Oct 2, 2025
@lucascolley lucascolley self-requested a review October 2, 2025 11:43
Copy link
Member

@lucascolley lucascolley left a comment

Choose a reason for hiding this comment

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

thanks @Enderdead, LGTM!

@lucascolley lucascolley merged commit 5a9e1a5 into data-apis:main Oct 2, 2025
11 checks passed
@lucascolley
Copy link
Member

thanks again @Enderdead ! Feel free to give any other issues a try if you want :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants