[sympy] Re: autowrap a matrix expression

2012-07-06 Thread Gustavo
Is it possible to accomplish this using an out parameter? This would still be useful to me. On Monday, January 23, 2012 2:20:50 PM UTC-5, Gustavo wrote: Right now it returns a float. I'd like an NumPy array, so maybe I can create the NumPy array with the correct size and row/column

Re: [sympy] Re: autowrap a matrix expression

2012-07-06 Thread Matthew Rocklin
It would be nice if SymPy could do this. I'm unfortunately not very familiar with the code generation module. If it's not possible now then we should make an issue for it. Alternatively you could take a look at the theano projecthttp://deeplearning.net/software/theano/. They optimize and generate

Re: [sympy] Re: autowrap a matrix expression

2012-07-06 Thread Matthew Rocklin
On a semi-related note I think it'd be awesome if SymPy created a Theano code generator. Our two projects are related and I think that there is something to be gained by cooperation. We optimize and simplify expressions in semi-orthogonal ways. On Fri, Jul 6, 2012 at 10:45 AM, Matthew Rocklin

[theano-dev] Re: [sympy] Re: autowrap a matrix expression

2012-07-06 Thread Frédéric Bastien
Hi, I agree that more cooperation would be great. Up to now the problem on our side is time to look at SymPy. I'm going to SciPy in ~1 week in Texas. I was under the impression there was a tutorial/talk about SimPy There, but I don't find it anymore. Is it a sprint? The sprints list is not on

Re: [theano-dev] Re: [sympy] Re: autowrap a matrix expression

2012-07-06 Thread Aaron Meurer
On Jul 6, 2012, at 12:41 PM, Frédéric Bastien no...@nouiz.org wrote: Hi, I agree that more cooperation would be great. Up to now the problem on our side is time to look at SymPy. I'm going to SciPy in ~1 week in Texas. I was under the impression there was a tutorial/talk about SimPy There,

Re: [sympy] Re: autowrap a matrix expression

2012-01-23 Thread Aaron Meurer
But what kind of object would you expect to be used for the Matrox? Aaron Meurer On Jan 22, 2012, at 11:50 PM, Gustavo gustavo.goret...@gmail.com wrote: Sorry for the vagueness. This is what I'd like: import sympy from sympy.utilities.autowrap import autowrap x = sympy.symbol.symbols('x')

[sympy] Re: autowrap a matrix expression

2012-01-23 Thread Gustavo
Right now it returns a float. I'd like an NumPy array, so maybe I can create the NumPy array with the correct size and row/column ordering and pass it as an out parameter to the code generator. On Jan 23, 12:57 pm, Aaron Meurer asmeu...@gmail.com wrote: But what kind of object would you expect

[sympy] Re: autowrap a matrix expression

2012-01-21 Thread Matthew
Hi Gustavo, Can you say more about what you want? I don't understand. It might be helpful to give an example of what you want to work. -Matt On Jan 21, 2:07 am, Gustavo gustavo.goret...@gmail.com wrote: How can I autowrap a matrix expression without making an autofunction from each of the