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

Function main

pythran/mb/MB_pythran_main.py:35–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33import time
34
35def main():
36 imax = 255
37 for N in [500, 1000, 2000, 5000]:
38 T_s = time.time()
39 nR, nC = N, N
40 Re = np.linspace(-0.7440,
41 -0.7433, nC)
42 Im = np.linspace( 0.1315,
43 0.1322, nR)
44 img = MB(Re, Im, imax)
45 print(N, time.time() - T_s)
46if __name__ == '__main__': main()

Callers 1

MB_pythran_main.pyFile · 0.70

Calls 1

MBFunction · 0.90

Tested by

no test coverage detected