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
Gwenaël Samain
cython
Commits
d9712297
Commit
d9712297
authored
Mar 11, 2014
by
scoder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #281 from larsmans/doc-memview-attribs
document memoryview attributes better
parents
776d24bd
626e8cb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
docs/src/userguide/memoryviews.rst
docs/src/userguide/memoryviews.rst
+8
-8
No files found.
docs/src/userguide/memoryviews.rst
View file @
d9712297
...
...
@@ -457,14 +457,14 @@ converted back to Cython-space memoryviews at any time.
They have the following attributes:
*
shape
*
strides
*
suboffsets
*
ndim
*
size
*
itemsize
*
nbytes
*
base
*
``shape``: size in each dimension, as a tuple.
*
``strides``: stride along each dimension, in bytes.
*
``suboffsets``
*
``ndim``: number of dimensions.
*
``size``: total number of items in the view (product of the shape).
*
``itemsize``: size, in bytes, of the items in the view.
*
``nbytes``: equal to ``size`` times ``itemsize``.
*
``base``
And of course the aforementioned ``T`` attribute (:ref:`view_transposing`).
These attributes have the same semantics as in NumPy_. For instance, to
...
...
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