Commit dc60a99b authored by Stefan Behnel's avatar Stefan Behnel

use strided mode in plain buffer example

parent 61d52da9
...@@ -182,7 +182,7 @@ You will probably prefer memoryviews to the older syntax because: ...@@ -182,7 +182,7 @@ You will probably prefer memoryviews to the older syntax because:
For example, this is the old syntax equivalent of the ``sum3d`` function above:: For example, this is the old syntax equivalent of the ``sum3d`` function above::
cpdef int old_sum3d(object[int, ndim=3] arr): cpdef int old_sum3d(object[int, ndim=3, mode='strided'] arr):
cdef int I, J, K, total = 0 cdef int I, J, K, total = 0
I = arr.shape[0] I = arr.shape[0]
J = arr.shape[1] 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