Numba jit warnings interpretation in python
问题 I have defined the following recursive array generator and am using Numba jit to try and accelerate the processing (based on this SO answer) @jit("float32[:](float32,float32,intp)", nopython=False, nogil=True) def calc_func(a, b, n): res = np.empty(n, dtype="float32") res[0] = 0 for i in range(1, n): res[i] = a * res[i - 1] + (1 - a) * (b ** (i - 1)) return res a = calc_func(0.988, 0.9988, 5000) I am getting a bunch of warnings/errors that I do not quite get. Would appreciate help in