function types in numba
问题 What is currently the best way of dealing with higher order functions in numba? I implemented the secant method: def secant_method_curried (f): def inner (x_minus1, x_0, consecutive_tolerance): x_new = x_0 x_old = x_minus1 x_oldest = None while abs(x_new - x_old) > consecutive_tolerance: x_oldest = x_old x_old = x_new x_new = x_old - f(x_old)*((x_old-x_oldest)/(f(x_old)-f(x_oldest))) return x_new return numba.jit(nopython=False)(inner) The issue is that there's no way to tell numba that f is