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

Function MB

numba/mb/MB_numba_prange.py:51–61  ·  view source on GitHub ↗
(Re, Im, imax)

Source from the content-addressed store, hash-verified

49 float64[:],int64),
50 nopython=True, fastmath=True, parallel=True)
51def MB(Re, Im, imax):
52 nR = len(Im)
53 nC = len(Re)
54 img = np.zeros((nR, nC),
55 dtype=np.uint8)
56 for i in prange(len(Im)):
57 I = Im[i]
58 for j,R in enumerate(Re):
59 c = complex(R, I)
60 img[i, j] = nIter(c, imax)
61 return img
62
63def main():
64 imax = 255

Callers 1

mainFunction · 0.70

Calls 1

nIterFunction · 0.70

Tested by

no test coverage detected