Sure, that would be easy enough to implement. I don't really have
    a preference, is there a reason you would prefer that API?


No, just exploring possibilities. Another would be a different name, searchargsorted or some such. I actually think that is a better alternative than the pair, but it would add another method to ndarray.

I guess after thinking about it my own personal preference is for just adding the sorter argument, perhaps others can weigh in. Just to summarize, the proposals fo far:

    np.searchsorted(a, 12, sorter=s)

    np.searchsorted((a,s), 12)

    np.searchargsorted(a, s, 12)


Bryan
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to