Re: C code generator and much improved contraction logic

2010-07-27 Thread Ondrej Certik
On Tue, Jul 27, 2010 at 9:11 AM, Andy Ray Terrel wrote: > On Tue, Jul 27, 2010 at 10:33 AM, Toon Verstraelen > wrote: >> On 07/26/2010 10:36 PM, Ųyvind Jensen wrote: >>> >>> I have uploaded my work on the C code printer, C code generator and the >>> tensor module to smartbear for review: >>> >>>

Re: Hydrogen wavefunctions + Laguerre polys

2010-07-27 Thread Ondrej Certik
On Tue, Jul 27, 2010 at 6:40 PM, Aaron S. Meurer wrote: > On Jul 27, 2010, at 7:26 PM, Ondrej Certik wrote: > >> On Tue, Jul 27, 2010 at 4:34 PM, Aaron S. Meurer wrote: >>> >>> On Jul 27, 2010, at 5:16 PM, Ondrej Certik wrote: >>> On Tue, Jul 27, 2010 at 11:12 AM, Brian Granger wrote:

Re: Hydrogen wavefunctions + Laguerre polys

2010-07-27 Thread Aaron S. Meurer
On Jul 27, 2010, at 7:26 PM, Ondrej Certik wrote: > On Tue, Jul 27, 2010 at 4:34 PM, Aaron S. Meurer wrote: >> >> On Jul 27, 2010, at 5:16 PM, Ondrej Certik wrote: >> >>> On Tue, Jul 27, 2010 at 11:12 AM, Brian Granger wrote: Ondrej, I just looked through this and it looks great. Ve

Re: Hydrogen wavefunctions + Laguerre polys

2010-07-27 Thread Ondrej Certik
On Tue, Jul 27, 2010 at 4:34 PM, Aaron S. Meurer wrote: > > On Jul 27, 2010, at 5:16 PM, Ondrej Certik wrote: > >> On Tue, Jul 27, 2010 at 11:12 AM, Brian Granger wrote: >>> Ondrej, >>> I just looked through this and it looks great.  Very nice.  Once the base >>> quantum stuff is done, we can int

Re: Hydrogen wavefunctions + Laguerre polys

2010-07-27 Thread Aaron S. Meurer
On Jul 27, 2010, at 5:16 PM, Ondrej Certik wrote: > On Tue, Jul 27, 2010 at 11:12 AM, Brian Granger wrote: >> Ondrej, >> I just looked through this and it looks great. Very nice. Once the base >> quantum stuff is done, we can integrate it with the hydrogen.py stuff, so >> that the following wo

Re: Hydrogen wavefunctions + Laguerre polys

2010-07-27 Thread Ondrej Certik
On Tue, Jul 27, 2010 at 11:12 AM, Brian Granger wrote: > Ondrej, > I just looked through this and it looks great.  Very nice.  Once the base > quantum stuff is done, we can integrate it with the hydrogen.py stuff, so > that the following would work: s = HState(n, l, m) s > |nlm> rep

Re: C code generator and much improved contraction logic

2010-07-27 Thread Andy Ray Terrel
On Tue, Jul 27, 2010 at 4:25 PM, Aaron S. Meurer wrote: > > On Jul 27, 2010, at 10:11 AM, Andy Ray Terrel wrote: > >> On Tue, Jul 27, 2010 at 10:33 AM, Toon Verstraelen >> wrote: >>> On 07/26/2010 10:36 PM, Ųyvind Jensen wrote: I have uploaded my work on the C code printer, C code gener

Re: C code generator and much improved contraction logic

2010-07-27 Thread Aaron S. Meurer
On Jul 27, 2010, at 10:11 AM, Andy Ray Terrel wrote: > On Tue, Jul 27, 2010 at 10:33 AM, Toon Verstraelen > wrote: >> On 07/26/2010 10:36 PM, Ųyvind Jensen wrote: >>> >>> I have uploaded my work on the C code printer, C code generator and the >>> tensor module to smartbear for review: >>> >>>

Re: Hydrogen wavefunctions + Laguerre polys

2010-07-27 Thread Brian Granger
Ondrej, I just looked through this and it looks great. Very nice. Once the base quantum stuff is done, we can integrate it with the hydrogen.py stuff, so that the following would work: >>> s = HState(n, l, m) >>> s |nlm> >>> represent(s, PositionBasis()) ...your functions... Looks great thoug

Re: C code generator and much improved contraction logic

2010-07-27 Thread Brian Granger
Oyvind, I don't know if you saw the new operator priority stuff that I did this weekend. This will make it possible to more reliably have Expr subclasses that define their own binary special methods (__mul__, __add__, etc._) that are always called based on priority of the class. This could be us

Re: C code generator and much improved contraction logic

2010-07-27 Thread Ondrej Certik
On Tue, Jul 27, 2010 at 9:11 AM, Andy Ray Terrel wrote: > On Tue, Jul 27, 2010 at 10:33 AM, Toon Verstraelen > wrote: >> On 07/26/2010 10:36 PM, Ųyvind Jensen wrote: >>> >>> I have uploaded my work on the C code printer, C code generator and the >>> tensor module to smartbear for review: >>> >>>

Re: C code generator and much improved contraction logic

2010-07-27 Thread Andy Ray Terrel
On Tue, Jul 27, 2010 at 10:33 AM, Toon Verstraelen wrote: > On 07/26/2010 10:36 PM, Ųyvind Jensen wrote: >> >> I have uploaded my work on the C code printer, C code generator and the >> tensor module to smartbear for review: >> >> http://hosted.smartbear.com/sympy/go?page=ReviewDisplay&reviewid=6

Re: C code generator and much improved contraction logic

2010-07-27 Thread Toon Verstraelen
On 07/26/2010 10:36 PM, Ųyvind Jensen wrote: The code is also on github: http://github.com/jegerjensen/sympy/tree/codegen_C2 I have two failing tests on my system. __ sympy/printing/tests/test_ccode.py:test_cc

Re: C code generator and much improved contraction logic

2010-07-27 Thread Toon Verstraelen
On 07/26/2010 10:36 PM, Ųyvind Jensen wrote: I have uploaded my work on the C code printer, C code generator and the tensor module to smartbear for review: http://hosted.smartbear.com/sympy/go?page=ReviewDisplay&reviewid=6 The ability to create code that loops over array arguments is much impro

Re: Final version of binary operator priorities

2010-07-27 Thread Brian Granger
Ondrej, Thanks! This will be a huge help to us. Cheers, Brian On Tue, Jul 27, 2010 at 12:10 AM, Ondrej Certik wrote: > On Sun, Jul 25, 2010 at 12:34 PM, Brian Granger > wrote: > > Hi, > > Here is the final version of my binary operator priority branch: > > http://github.com/ellisonbg/sympy/

Re: Final version of binary operator priorities

2010-07-27 Thread Ondrej Certik
On Sun, Jul 25, 2010 at 12:34 PM, Brian Granger wrote: > Hi, > Here is the final version of my binary operator priority branch: > http://github.com/ellisonbg/sympy/tree/priority > To address comments I have: > * Created a decorator @call_highest_priority that is in > sympy.core.decorators to encap

Re: __imp__ code...

2010-07-27 Thread Ondrej Certik
Hi Matthew, On Fri, Jul 23, 2010 at 8:48 PM, Ondrej Certik wrote: > On Fri, Jul 23, 2010 at 8:37 PM, Matthew Brett > wrote: >> Hi, >> I also don't feel strongly either way. I would use "_imp_" though, that seems to be the best. >>> >>> It shall be so ;) >> >> Done; I also responded to