Commit ab654516 authored by Stefan Behnel's avatar Stefan Behnel

type loop variables in memoryview example code

parent 87e8d6c4
......@@ -64,6 +64,7 @@ started with Cython memory views.
# A function using a memoryview does not usually need the GIL
cpdef int sum3d(int[:, :, :] arr) nogil:
cdef size_t i, j, k
cdef int total = 0
I = arr.shape[0]
J = arr.shape[1]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment