Skip to content

Move main array namespace #307

Open
Open
@tomwhite

Description

@tomwhite

Currently all the array functions are in cubed.array_api. This was created to follow the naming pattern for the new array API in numpy.array_api. Since then, however, there has been a change in emphasis to view numpy.array_api as a reference implementation so downstream libraries can test if they are using only array API functions - it is no longer recommended for end users to use it directly, since array libraries are slowly migrating their main namespaces to implement the array API. This includes NumPy in version 2.0, and in the meantime there is array-api-compat to ease migration for users of NumPy, CuPy, and PyTorch.

The upshot for Cubed is that we should probably move away from cubed.array_api for the above reasons, but also so we can add new functions that are not yet standardised, such as nansum (see #153).

The two options I see are:

  1. cubed
  2. cubed.array

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions