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

Function main

numba/mb/MB_numba.py:58–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 return img
57
58def main():
59 imax = 255
60 for N in [500, 1000, 2000, 5000]:
61 T_s = time.time()
62 nR, nC = N, N
63 Re = np.linspace(-0.7440,
64 -0.7433, nC)
65 Im = np.linspace( 0.1315,
66 0.1322, nR)
67 img = MB(Re, Im, imax)
68 print(f'{time.time() - T_s:.3f} {N:5d}')
69# img.tofile('p_image_numba.bin')
70if __name__ == '__main__': main()

Callers 1

MB_numba.pyFile · 0.70

Calls 1

MBFunction · 0.70

Tested by

no test coverage detected