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