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

Sebastian Walter sebastian.walter at gmail.com
Wed Dec 8 17:37:38 EST 2010


On Wed, Dec 8, 2010 at 10:07 PM, Rob Clewley <rob.clewley at gmail.com> wrote:
>>> 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.

Could you point me to some short code example where the "for" macro is used?

> 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
> http://www2.gsu.edu/~matrhc
> http://neuroscience.gsu.edu/rclewley.html
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>



More information about the SciPy-User mailing list