Skip to content

[FEATURE REQUEST] add indexing via array #607

@Derfies

Description

@Derfies

I would like the ability to use one ndarray to index into another one, aka “Advanced indexing” (https://numpy.org/doc/stable/user/basics.indexing.html)

eg:

x = np.arange(10, 1, -1)
-> x
array([10, 9, 8, 7, 6, 5, 4, 3, 2])
-> x[np.array([3, 3, 1, 8])]
array([7, 7, 9, 2])

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions