On Jul 8, 2009, at 12:37 PM, David Simmons-Duffin wrote:

> I didn't realize that Sage could do Lie algebra manipulations.   
> What are the pros and cons for writing an interface to LiE as  
> opposed to simply extending Sage's existing functionality?  Is LiE  
> faster, or has it implemented some tricky algorithms that people  
> don't want to write in sage?

I'm not sure, probably someone else on the sage list wold know the  
relative merits better than I. I'd imagine Sage's existing  
functionality is relatively generic, and not as optimized as LiE.

> I'd be happy to donate my code to Sage, although I don't know if it  
> will have the right organization or be of the right quality  
> standards.  I haven't used Sage, but it looks like it has some kind  
> of system for dealing with general mathematical objects, for  
> instance keeping track of whether something is a group or ring  
> element, or in a vector space over some field.  I made some  
> decisions about what kind of classes to include in my interface  
> based on trying to achieve the simplest code for my particular  
> applications, and not with an eye towards conforming to some  
> general math system.  For instance, whereas LiE uses a polynomial  
> to stand for a representaion, I have a Rep object that wraps a  
> polynomial and a group, where multiplication on Rep's is defined as  
> tensor product.  If I were writing a sage extension, I imagine I  
> would have to somehow also encode that Rep is a type of ring over  
> the integers, etc..
>
> Would my code be useful even without conforming to sage's math  
> conventions? I'd be interested in learning how to write a sage  
> extension at some point, but I need my code for a physics project  
> I'm actively working on now, and I'm not sure I have very much time  
> to spend on programming.

I'm not sure exactly what you mean by "sage's math conventions" but  
I'm sure others would find it useful. Writing Sage extensions is even  
easier than just plain Cython, as it handles all the setup.py,  
dependancies, and linking for you.

- Robert



--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to