Skip to content

ENH: new function replace #992

Description

@lucascolley

From https://hackmd.io/zn5bvdZTQIeJmb3RW1B-8g?both#Updates-from-the-sparse-array-ecosystem-Willow, @willow-ahrens suggested an xp.replace(array, old, new) function, which could have the agnostic implementation xp.where(xp.equals(...), old, new ).

@willow-ahrens if you'd like to work on this, we have contributor docs at https://data-apis.org/array-api-extra/contributing.html.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions