On 8 March 2010 21:52, Ondrej Certik <[email protected]> wrote:
> On Thu, Mar 4, 2010 at 4:05 AM, Dag Sverre Seljebotn
> <[email protected]> wrote:
>> Are anybody aware of a library for solving ODEs with fast callbacks to
>> Cython? The ones in SciPy require a Python callback at every step...
>>
>> My needs aren't particularily complicated.
>>
>> I'll just wrap something in C otherwise, of course (such as GSL).
>
> If you do so, please post the code online. I want to see how you did
> the callbacks (so that it works both in python and cython), as I will
> need to implement the same things for our solvers. So far I just
> created a cdef function, that I register for the C callback. But it is
> not visible from Python.
>

You could use cpdef to get both the C and Python versions... not sure
if that's what you really need.


-- 
Lisandro Dalcin
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to