Skip to content

Commit b30b8e9

Browse files
authored
Fix numba example syntax
Fix a syntax error. `np.ndarray` is for cython.
1 parent 0fc1352 commit b30b8e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

07-beyond-numpy.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ Fortran, without having to switch languages or Python interpreters.
199199
import numpy as np
200200
201201
@jit
202-
def evaluate(np.ndarray a, np.ndarray b):
202+
def evaluate(a, b):
203203
c = np.zeros_like(a)
204204
for i in range(a.size):
205205
c[i] = 2*a[i] + 3*b[i]

0 commit comments

Comments
 (0)