projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61d52da
)
use strided mode in plain buffer example
author
Stefan Behnel
<stefan_ml@behnel.de>
Thu, 21 Jun 2012 13:48:01 +0000
(15:48 +0200)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Thu, 21 Jun 2012 13:48:01 +0000
(15:48 +0200)
docs/src/userguide/memoryviews.rst
patch
|
blob
|
history
diff --git
a/docs/src/userguide/memoryviews.rst
b/docs/src/userguide/memoryviews.rst
index
ff2bc39
..
32b7112
100644
(file)
--- a/
docs/src/userguide/memoryviews.rst
+++ b/
docs/src/userguide/memoryviews.rst
@@
-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::
- 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
I = arr.shape[0]
J = arr.shape[1]