Re: [Cython] N-d arrays, without a Python object

2012-05-20 Thread mark florisson
On 20 May 2012 21:59, Pauli Virtanen wrote: > Hi, > > >        # OK, but slow >        cdef double[:,:] a = np.zeros((10, 10), float) > >        # OK, fast (no Python object) >        cdef double[10] a > >        # OK, but slow, makes Python calls (-> cython.view array) >        cdef double[10*10]

[Cython] N-d arrays, without a Python object

2012-05-20 Thread Pauli Virtanen
Hi, # OK, but slow cdef double[:,:] a = np.zeros((10, 10), float) # OK, fast (no Python object) cdef double[10] a # OK, but slow, makes Python calls (-> cython.view array) cdef double[10*10] a_ cdef double[:,:] a = (a_) # not allo

Re: [Cython] gsoc: array expressions

2012-05-20 Thread mark florisson
On 20 May 2012 15:03, mark florisson wrote: > Hey, > > For my gsoc we already have some simple initial ideas, i.e. > elementwise vector expressions (a + b with a and b arrays with > arbitrary rank), I don't think these need any discussion. However, > there are a lot of things that haven't been for

[Cython] gsoc: array expressions

2012-05-20 Thread mark florisson
Hey, For my gsoc we already have some simple initial ideas, i.e. elementwise vector expressions (a + b with a and b arrays with arbitrary rank), I don't think these need any discussion. However, there are a lot of things that haven't been formally discussed on the mailing list, so here goes. Fréd

Re: [Cython] [cython] Python array support (#113)

2012-05-20 Thread Robert Bradshaw
On Wed, May 16, 2012 at 9:34 AM, Stefan Behnel wrote: > Andreas van Cranenburgh, 16.05.2012 18:15: >> Any news on this? Let me know if there's anything I can do to help inclusion >> of this patch. > > Could someone please take over here? > > https://github.com/cython/cython/pull/113 > > I haven't