Skip to content

Commit

Permalink
fix numba error
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhaoliang committed Jan 19, 2024
1 parent e69e21f commit 9379bc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/misc/julia.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
CONST = 0.7


@jit("float32(complex64)")
@jit("float32(complex64)", nopython=True)
def escape(z):
for i in range(MAXITERS):
if z.real * z.real + z.imag * z.imag > RADIUS:
Expand Down
4 changes: 2 additions & 2 deletions src/misc/mandelbrot.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
RADIUS = 100


@jit
@jit(nopython=True)
def color(z, i):
v = np.log2(i + 1 - np.log2(np.log2(abs(z)))) / 5
if v < 1.0:
Expand All @@ -26,7 +26,7 @@ def color(z, i):
return v, v ** 1.5, v ** 3


@jit
@jit(nopython=True)
def iterate(c):
z = 0j
for i in range(MAXITERS):
Expand Down

0 comments on commit 9379bc0

Please sign in to comment.