Skip to content

Exposing np.select? #202

Open
Open

Description

@kaushikcfd

Should we support np.select? It's a bit controversial because one could chain np.where to emulate np.select, but I thought this would be a cleaner way to implement inducer/meshmode#355.

Activity

  1. inducer commented on Oct 14, 2022

    @inducer
    Owner

    I think a canned implementation in terms of wheres makes sense, though perhaps not with pressing urgency. The main reason to me would be that select could boil down to $\log(n)$ actually executed ternaries as opposed to $n$.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions