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

Function MB

numba/mb/MB_numba.py:46–56  ·  view source on GitHub ↗
(Re, Im, imax)

Source from the content-addressed store, hash-verified

44
45@jit(uint8[:,:](float64[:],float64[:],int64), nopython=True)
46def MB(Re, Im, imax):
47 nR = len(Im)
48 nC = len(Re)
49 img = np.zeros((nR, nC),
50 dtype=np.uint8)
51 for i in range(len(Im)):
52 I = Im[i]
53 for j,R in enumerate(Re):
54 c = complex(R, I)
55 img[i, j] = nIter(c, imax)
56 return img
57
58def main():
59 imax = 255

Callers 1

mainFunction · 0.70

Calls 1

nIterFunction · 0.70

Tested by

no test coverage detected