Code Monkey home page Code Monkey logo

Comments (4)

timkittel avatar timkittel commented on May 28, 2024

Just to through it in the round: PyDSTool (which Jan seems to have used already)can seemingly compile code in-time to C and is precisely made to solve any kinds of dynamical systems with a lot of speed.
http://www.ni.gsu.edu/~rclewley/PyDSTool/FrontPage.html

from pycopancore.

jdonges avatar jdonges commented on May 28, 2024

This is mainly for bifurcation analysis for odes, but we have a more general model class.

from pycopancore.

jdonges avatar jdonges commented on May 28, 2024

Any results in this so far?

from pycopancore.

timkittel avatar timkittel commented on May 28, 2024

Just a short note:
We should check whether Cython is compatible with ctypes, but I couldn't find anything online. As numba has the cfunc decorator as an interface to C, this would mean one could code in cython but extensions in numba could be included, too. I attached a small archive containing a comparison of pure (unoptimized) C-code and numba using the cfunc decorator interfacing to C and the speed is about the same. For compilation, use gcc -fPIC -shared -o libreduce.so reduce.c . Maybe somebody with more experience than me could could extend this example Cython? (@wbarfuss?)

PS1: nb-ctypes.tar.gz
PS2: Note that the fully-optimized C-Code can be a factor of 10 faster than numba, because it can use inlining and direct cpu directives. (Interestingly, the reduce.so produced by gcc is quite a bit slower than using the (afaik somewhat more modern) clang compiler when using the -O3 flag for both.)

from pycopancore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.