Skip to content

add find_first function (Trac #1738) #2333

Closed

Description

@numpy-gitbot

Original ticket http://projects.scipy.org/numpy/ticket/1738 on 2011-02-09 by @nbecker, assigned to unknown.

find_first would be a performance enhancement. The current alternative would be something like:

argmax (some boolean function...)

which requires a lot of extra work if all you want is the index of the first occurance.

This is frequently wanted for 1-d arrays, where it's meaning is unambiguous. I think semantics for n-d (n > 1) arrays is up for discussion.

Activity

  1. numpy-gitbot commented on Oct 23, 2012

    @numpy-gitbot
    Author

    @rgommers wrote on 2011-03-24

    Duplicate of #2269 (more or less, I added a comment there).

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions