X Tutup
Skip to content

Commit 79bc5fe

Browse files
authored
Merge pull request #7 from yut23/mandel-cython-fix
Improve cython performance
2 parents 30704f6 + 61b1a1a commit 79bc5fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/extensions/cython/mandel.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def mandelbrot(int N,
3232
if m[i, j] == 0:
3333
z[i, j] = z[i, j] * z[i, j] + c[i, j]
3434

35-
if np.abs(z[i,j]) > 2:
35+
if abs(z[i,j]) > 2:
3636
m[i, j] = n
3737

3838
return m

0 commit comments

Comments
 (0)
X Tutup