Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
60dcd089
Commit
60dcd089
authored
Jul 06, 2018
by
gabrieldemarmiesse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: Inverted the order in which an example was presented.
parent
e1bc4269
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
docs/src/userguide/memoryviews.rst
docs/src/userguide/memoryviews.rst
+6
-5
No files found.
docs/src/userguide/memoryviews.rst
View file @
60dcd089
...
...
@@ -441,15 +441,16 @@ and they can be used like this:
.. literalinclude:: ../../examples/userguide/memoryviews/memory_layout.pyx
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
cdef int[::view.contiguous, ::view.indirect, :]
a
cdef int[::1, ::view.indirect, :]
b
cdef int[::view.contiguous, ::view.indirect, :]
d
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
former specifies contiguity for only one dimension, whereas the latter specifies
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment