V
V
voronin_denis2019-08-08 11:27:08
Python
voronin_denis, 2019-08-08 11:27:08

How to optimize np.unravel_index?

Help optimize the search for indexes in an array.
np.unravel_index((np.abs(out_array - ty) + np.abs(out_array2 - tx)).argmin(), out_array.shape)
shape = (2024, 1028)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question