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

Function nIter

numba/mb/MB_numba_prange.py:39–46  ·  view source on GitHub ↗
(c, imax)

Source from the content-addressed store, hash-verified

37@jit(uint8(complex128,int64),
38 nopython=True, fastmath=True)
39def 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 + \
44 z.imag*z.imag > 4:
45 break
46 return i
47
48@jit(uint8[:,:](float64[:],
49 float64[:],int64),

Callers 1

MBFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected