Re: [sage-support] newbie to cython: wrap int func( int n, float x[] )

2010-03-12 Thread Robert Bradshaw
On Mar 12, 2010, at 9:05 AM, gerhard wrote: Trying to wrap an existing library. I managed to at least get started with a .spyx file as follows: cdef extern from "stdlib.h": void *malloc(size_t size) int free(void*) int sizeof() cdef extern from "func.h

[sage-support] newbie to cython: wrap int func( int n, float x[] )

2010-03-12 Thread gerhard
Trying to wrap an existing library. I managed to at least get started with a .spyx file as follows: cdef extern from "stdlib.h": void *malloc(size_t size) int free(void*) int sizeof() cdef extern from "func.h": int func( int n, float* x ) cdef doub