Contents:
ompy.
index
Finds the index of the closest element in the array
Unsafe. 9 times faster than np.abs(array - element).argmin()
array – The array to index
element – The element to find
The index (int) to the closest element in the array.