Find Nearest Transition in N-dimensional Array

前端 未结 0 1170
失恋的感觉
失恋的感觉 2020-12-21 19:19

I want to find index of the nearest transition in a numpy ndarray of integers given a current index in an efficient manner. Transition means a change of value.

For e

相关标签:
回答
  • 消灭零回复
提交回复
热议问题