MCPcopy Index your code
hub / github.com/Apress/python-for-matlab-development / MB

Function MB

code/hpc/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 main():
55 imax = 255

Callers 4

mainFunction · 0.70
main2.pyFile · 0.50
mainFunction · 0.50
main3.pyFile · 0.50

Calls 1

nIterFunction · 0.70

Tested by

no test coverage detected