Re: [Cython] memoryviews from C arrays

2011-11-23 Thread mark florisson
Yes, but I'm running some tests on hudson. On 23 November 2011 21:46, Robert Bradshaw wrote: > On Wed, Nov 23, 2011 at 12:21 PM, mark florisson > wrote: > > Hey, > > > > Currently when we want to convert C arrays to memoryview slices we have > to > > do this: > > > > cdef int array[5][4] > > cde

Re: [Cython] memoryviews from C arrays

2011-11-23 Thread Robert Bradshaw
On Wed, Nov 23, 2011 at 12:21 PM, mark florisson wrote: > Hey, > > Currently when we want to convert C arrays to memoryview slices we have to > do this: > > cdef int array[5][4] > cdef int[:, :] slice = array > I'd like to be able to write > cdef int array[5][4] > cdef int[:, :] slice > slice =

[Cython] memoryviews from C arrays

2011-11-23 Thread mark florisson
Hey, Currently when we want to convert C arrays to memoryview slices we have to do this: cdef int array[5][4] cdef int[:, :] slice = array I'd like to be able to write cdef int array[5][4] cdef int[:, :] slice slice = array # and slice = array I think that would be convenient, especially i