[SciPy-User] Speeding up integrate.odeint with weave/blitz

Rob Clewley rob.clewley@gmail....
Wed Dec 8 15:07:35 CST 2010

>> It will automatically compile the dX_dt function you
>> specify into C and link it with the C integrator.
> Does that mean that your tool translates Python to C?

No, it translates an almost-subset of python, specified by strings or
symbolic objects, to actual python or C, using declared variable and
parameter names rather than an indexed array. The two non-python
statements are an "if" function and a "for" macro. You can call other
user-defined functions declared in a similar way. You can also drop in
arbitrary code into the internally-created function before or after
these strings are coded. And you can import arbitrary libraries for
both python and C targets.

Robert Clewley, Ph.D.
Assistant Professor
Neuroscience Institute and
Department of Mathematics and Statistics
Georgia State University
PO Box 5030
Atlanta, GA 30302, USA

tel: 404-413-6420 fax: 404-413-5446

More information about the SciPy-User mailing list