Vectorizing a function for finding local minima and maxima in a 2D array with strict comparison
Vectorizing a function for finding local minima and maxima in a 2D array with strict comparison Question: I’m trying to improve the performance of a function that returns the local minima and maxima of an input 2D NumPy array. The function works as expected, but it is too slow for my use case. I’m wondering …
Total answers: 1