[sympy] C Code printing could use some work

2013-08-09 Thread Matthew Rocklin
Our code printers support only a narrow set of SymPy. More advanced mathematical operations like `Gamma` go completely unsupported and even give wrong results. This is easy to fix. Find a SymPy operator, figure out how to print it in C, and make a commit. Here is an example with the Gamma

Re: [sympy] C Code printing could use some work

2013-08-09 Thread Ondřej Čertík
On Fri, Aug 9, 2013 at 9:47 AM, Matthew Rocklin mrock...@gmail.com wrote: Our code printers support only a narrow set of SymPy. More advanced mathematical operations like `Gamma` go completely unsupported and even give wrong results. This is easy to fix. Find a SymPy operator, figure out

Re: [sympy] C Code printing could use some work

2013-08-09 Thread Matthew Rocklin
On Fri, Aug 9, 2013 at 10:53 AM, Ondřej Čertík ondrej.cer...@gmail.comwrote: On Fri, Aug 9, 2013 at 9:47 AM, Matthew Rocklin mrock...@gmail.com wrote: Our code printers support only a narrow set of SymPy. More advanced mathematical operations like `Gamma` go completely unsupported and even

Re: [sympy] C Code printing could use some work

2013-08-09 Thread Matthew Rocklin
I've been testing with Theano and the SymPyCCodehttps://github.com/Theano/Theano/pull/1486op. I'd prefer not to have to think about compilation while testing if possible. I don't mean to suggest that this should be the standard testing procedure. Theano is way more of a testing PITA than

Re: [sympy] C Code printing could use some work

2013-08-09 Thread Ondřej Čertík
On Fri, Aug 9, 2013 at 10:10 AM, Matthew Rocklin mrock...@gmail.com wrote: I've been testing with Theano and the SymPyCCode op. I'd prefer not to have to think about compilation while testing if possible. I don't mean to suggest that this should be the standard testing procedure. Theano is