From: Bill B. <wb...@gm...> - 2006-08-24 14:11:08
|
That's one thing that numpy is good for. http://numpy.scipy.org It has some swig typemaps included in the installation, too, from what I understand. I don't know if numpy is necessary, but I'm pretty sure it is sufficient for passing const double*s around. --bb On 8/24/06, Ankur Desai (Contractor) <de...@ai...> wrote: > > I'm trying to wrap a C function that takes as one of its arguments a > pointer to an array of constant doubles (const double *). I've tried > passing both an array of doubles and a tuple (a constant array of > doubles), and both have failed. Does anyone know what Python object can > be used in this instance? > > Thank you very much for your help, > Ankur Desai > > > |