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