On Saturday, 31 October 2015 10:33:19 UTC+13, Aaron Meurer wrote: > > I would also love to hear from those of you who are using SymPy to do > code generation or would like to use SymPy to do code generation, what > is your wishlist for SymPy? What do you wish it could do that it can't > do or what do you wish it could do better? >
I only saw this thread after my previous post. My research group uses MATLAB and C versions of the same ODE model to run on different platforms (MATLAB for testing a single component, C for running large numbers in parallel in an HPC environment). Because the models are pretty complex in terms of number of equations, variables and parameters, maintaining two versions of the code without making mistakes was a massive nightmare. I wrote a piece of software (not publicly available just yet, but will be soon) to allow the model to be specified once in ini files, and use Mako templates to create C and MATLAB versions of the model that can be interfaced to solvers. Sympy does the language translation of individual expressions. At the moment I'm grappling with how to customise the names of symbols - e.g. if an 'x' is picked up from the ini file, how can I append a prefix to it when it is output from ccode or octave_code. See my post from today: https://groups.google.com/forum/#!topic/sympy/xCSQChSpcb8 cheers Richard -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/62b2d130-4f80-489f-9137-77fb90dc5fe0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
