[Numpy-discussion] how to do this efficiently?

Alan G Isaac alan.isaac at gmail.com
Wed Feb 9 11:08:20 EST 2011


On 2/9/2011 10:58 AM, Neal Becker wrote:
> But where is numpy's 'find_first' function?


np.argmax(array>T)
(Of course that constructs a boolean array...)

Alan Isaac




More information about the NumPy-Discussion mailing list