MCPcopy Create free account
hub / github.com/Apress/python-for-matlab-development / nIter

Function nIter

numba/mb/MB_numba.py:37–43  ·  view source on GitHub ↗
(c, imax)

Source from the content-addressed store, hash-verified

35import time
36@jit(uint8(complex128,int64), nopython=True, fastmath=True)
37def 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)
46def MB(Re, Im, imax):

Callers 1

MBFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected