Commit d9712297 authored by scoder's avatar scoder

Merge pull request #281 from larsmans/doc-memview-attribs

document memoryview attributes better
parents 776d24bd 626e8cb9
...@@ -457,14 +457,14 @@ converted back to Cython-space memoryviews at any time. ...@@ -457,14 +457,14 @@ converted back to Cython-space memoryviews at any time.
They have the following attributes: They have the following attributes:
* shape * ``shape``: size in each dimension, as a tuple.
* strides * ``strides``: stride along each dimension, in bytes.
* suboffsets * ``suboffsets``
* ndim * ``ndim``: number of dimensions.
* size * ``size``: total number of items in the view (product of the shape).
* itemsize * ``itemsize``: size, in bytes, of the items in the view.
* nbytes * ``nbytes``: equal to ``size`` times ``itemsize``.
* base * ``base``
And of course the aforementioned ``T`` attribute (:ref:`view_transposing`). And of course the aforementioned ``T`` attribute (:ref:`view_transposing`).
These attributes have the same semantics as in NumPy_. For instance, to These attributes have the same semantics as in NumPy_. For instance, to
......
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