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

Function MB

code/matlab_py/trace_MB.py:43–52  ·  view source on GitHub ↗
(Re, Im, imax)

Source from the content-addressed store, hash-verified

41 return np.uint8(i)
42
43def MB(Re, Im, imax):
44 nR = len(Im)
45 nC = len(Re)
46 img = np.zeros((nR, nC),
47 dtype=np.uint8)
48 for i in range(nR):
49 for j in range(nC):
50 c = complex(Re[j],Im[i])
51 img[i,j] = nIter(c,imax)
52 return img
53
54def do_work(N, imax):
55 nR, nC = N, N

Callers 1

do_workFunction · 0.70

Calls 1

nIterFunction · 0.70

Tested by

no test coverage detected