(c, imax)
| 38 | |
| 39 | @jit(uint8(complex128,int64), nopython=True, fastmath=True) |
| 40 | def nIter(c, imax): |
| 41 | z = complex(0, 0) |
| 42 | for i in range(imax): |
| 43 | z = z*z + c |
| 44 | if z.real*z.real + z.imag*z.imag > 4: |
| 45 | break |
| 46 | return i |
| 47 | |
| 48 | @jit(nb_tuple((int64[:],uint8[:,:]))(int64,float64[:],int64,float64[:], |
| 49 | int64,int64,int64), nopython=True) |