(Re, Im, imax)
| 49 | float64[:],int64), |
| 50 | nopython=True, fastmath=True, parallel=True) |
| 51 | def 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 | |
| 63 | def main(): |
| 64 | imax = 255 |