[Numpy-discussion] how to do this efficiently?

Alan G Isaac alan.isaac@gmail....
Wed Feb 9 10:08:20 CST 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