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

Function main

numba/mb/MB_numba_prange.py:63–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61 return img
62
63def main():
64 imax = 255
65 for N in [500, 1000, 2000, 5000]:
66 T_s = time.time()
67 nR, nC = N, N
68 Re = np.linspace(-0.7440,
69 -0.7433, nC)
70 Im = np.linspace( 0.1315,
71 0.1322, nR)
72 img = MB(Re, Im, imax)
73 T_e = time.time()
74 print(f'{T_e - T_s:.3f} {N:5d}')
75if __name__ == '__main__': main()

Callers 1

MB_numba_prange.pyFile · 0.70

Calls 1

MBFunction · 0.70

Tested by

no test coverage detected