Skip to content

ENH: datasets: array API standard support #20594

@lucascolley

Description

@lucascolley

Towards gh-18867

I think this deserves its own issue. It should be quite simple to add support to scipy.datasets: just add a few xp.asarray wrappers.

However, there are performance concerns with device transfers - will it be possible to create the arrays on the desired device / of the desired type in the first place? Do we want to follow the pattern of the array-creation functions fft.{r}fftfreq by adding xp, device kwargs?

This is something of concern for downstream libraries as well e.g. second half of colour-science/colour#1244 (comment).

cc @rgommers @KelSolaar

Metadata

Metadata

Assignees

No one assigned

    Labels

    array typesItems related to array API support and input array validation (see gh-18286)enhancementA new feature or improvementscipy.datasets

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions