[NumPy-Tickets] [NumPy] #1738: add find_first function
NumPy Trac
numpy-tickets@scipy....
Wed Feb 9 17:41:29 CST 2011
#1738: add find_first function
-------------------------+--------------------------------------------------
Reporter: nbecker | Owner: somebody
Type: enhancement | Status: new
Priority: normal | Milestone: 2.0.0
Component: Other | Version: 1.5.0
Keywords: |
-------------------------+--------------------------------------------------
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.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1738>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list