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.
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
......
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