[Cython] buffer syntax vs. memory view syntax
markflorisson88 at gmail.com
Wed May 9 21:03:56 CEST 2012
On 9 May 2012 19:55, Stefan Behnel <stefan_ml at behnel.de> wrote:
> mark florisson, 09.05.2012 20:45:
>> You can also use newaxis indexing or transpose the view
> What is "newaxis indexing"?
> cython-devel mailing list
> cython-devel at python.org
It's when you introduce a new one-sized dimension. E.g. if you have a
1D array with shape (10,), and index it like myarray[None, :], you get
a 2D array with shape (1, 10). There is a pending pull request for
that (which should make it into 0.17).
More information about the cython-devel