Skip to content

RFC: zero-dimensional indices array for take #1010

Description

@mdhaber

The standard specifies that the indices array of take must be one-dimensional.

NumPy, PyTorch, JAX, and CuPy all support zero-dimensional indices arrays, too. Of course, all libraries support zero-dimensional (and int) indices for __getitem__.

Should the standard allow zero-dimensional arrays for indices? How about ints?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions