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

Function MB

pythran/mb/MB_pythran.py:42–51  ·  view source on GitHub ↗
(Re, Im, imax)

Source from the content-addressed store, hash-verified

40
41#pythran export MB(float [], float [], int)
42def MB(Re, Im, imax):
43 nR = Im.shape[0]
44 nC = Re.shape[0]
45 img = np.zeros((nR,nC),dtype=np.uint8)
46 #omp parallel for
47 for i,I in enumerate(Im):
48 for j,R in enumerate(Re):
49 c = complex(R, I)
50 img[i,j] = nIter(c, imax)
51 return img

Callers 1

mainFunction · 0.90

Calls 1

nIterFunction · 0.70

Tested by

no test coverage detected