Re: [Cython] read-only memory views

2012-09-18 Thread Robert Bradshaw
On Tue, Sep 18, 2012 at 3:42 PM, mark florisson wrote: > On 18 September 2012 20:55, Christoph Groth wrote: >> Hello, >> >> I have written a python extension module, tinyarray, (to be made public >> soon) which implements an important subset of numpy optimized for >> _small_ arrays. Tinyarrays a

Re: [Cython] [PATCH] make memoryviews work when strides is NULL (unfinished)

2012-09-18 Thread mark florisson
On 18 September 2012 15:19, Christoph Groth wrote: > Hi, > > Thanks a lot for the recently added generic memoryview support, it's > just what we needed to optimize an important part of our program. > > However, I believe that there's a problem with Cython's support for > objects which do not provi

Re: [Cython] read-only memory views

2012-09-18 Thread mark florisson
On 18 September 2012 20:55, Christoph Groth wrote: > Hello, > > I have written a python extension module, tinyarray, (to be made public > soon) which implements an important subset of numpy optimized for > _small_ arrays. Tinyarrays are immutable, which makes them usable as > dictionary keys. > >

[Cython] read-only memory views

2012-09-18 Thread Christoph Groth
Hello, I have written a python extension module, tinyarray, (to be made public soon) which implements an important subset of numpy optimized for _small_ arrays. Tinyarrays are immutable, which makes them usable as dictionary keys. Some important operations, i.e. creation of a small array from a

[Cython] [PATCH] make memoryviews work when strides is NULL (unfinished)

2012-09-18 Thread Christoph Groth
Hi, Thanks a lot for the recently added generic memoryview support, it's just what we needed to optimize an important part of our program. However, I believe that there's a problem with Cython's support for objects which do not provide "strides" information (because they are C-contiguous). The b