3 ms·
Waiting for a pycharm plugin
by d4rkp4ttern 4y ago
Waiting for a pycharm plugin
- d4rkp4ttern 4y agoNever mind there is a pyCharm plugin. And I am impressed. Example — # use numba to speed up the accumulation of the moving average @numba.jit("float64[:](float64[:], float64[:])", nopython=True, nogil=True) def moving_average(x, a): n = len(x) y = np.empty(n, dtype=np.float64) y[0] = x[0] for i in range(1, n): y[i] = y[i-1]*a[i-1] + x[i]*a[i] return y I would have found it with a stack overflow search but it gave me this after I just typed : # use numba to …