Re: [Cython] read-only memory views

2012-09-19 Thread Robert Bradshaw
On Wed, Sep 19, 2012 at 12:06 AM, Christoph Groth wrote: > Robert Bradshaw > writes: > >> Coincidentally, I actually implemented rudimentary const support a >> couple of days ago. It's not perfect, but at least it allows you to >> provide the correct declarations to deal with const polluted^H^H^H

Re: [Cython] read-only memory views

2012-09-19 Thread mark florisson
On 19 September 2012 00:15, Robert Bradshaw wrote: > 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 s

Re: [Cython] read-only memory views

2012-09-19 Thread Christoph Groth
Robert Bradshaw writes: > Coincidentally, I actually implemented rudimentary const support a > couple of days ago. It's not perfect, but at least it allows you to > provide the correct declarations to deal with const polluted^H^H^H^H > correct code (including const c++ class methods, for which th

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