Commit 60dcd089 authored by gabrieldemarmiesse's avatar gabrieldemarmiesse

Docs: Inverted the order in which an example was presented.

parent e1bc4269
...@@ -441,15 +441,16 @@ and they can be used like this: ...@@ -441,15 +441,16 @@ and they can be used like this:
.. literalinclude:: ../../examples/userguide/memoryviews/memory_layout.pyx .. literalinclude:: ../../examples/userguide/memoryviews/memory_layout.pyx
Only the first, last or the dimension following an indirect dimension may be Only the first, last or the dimension following an indirect dimension may be
specified contiguous:: specified contiguous:
from cython cimport view .. literalinclude:: ../../examples/userguide/memoryviews/memory_layout_2.pyx
::
# INVALID # INVALID
cdef int[::view.contiguous, ::view.indirect, :] a cdef int[::view.contiguous, ::view.indirect, :] d
cdef int[::1, ::view.indirect, :] b cdef int[::1, ::view.indirect, :] e
.. literalinclude:: ../../examples/userguide/memoryviews/memory_layout_2.pyx
The difference between the `contiguous` flag and the `::1` specifier is that the The difference between the `contiguous` flag and the `::1` specifier is that the
former specifies contiguity for only one dimension, whereas the latter specifies former specifies contiguity for only one dimension, whereas the latter specifies
......
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