pynbody.util.index_of_first

Contents

pynbody.util.index_of_first#

pynbody.util.index_of_first(array, find)[source]#

Returns the index to the first element in array which satisfies array[index]>=find. The array must be sorted in ascending order.