#13461: Another WeylCharacterRing speedup
----------------------------------------------------------------------------------------+
       Reporter:  bump                                                          
        |         Owner:  bump          
           Type:  enhancement                                                   
        |        Status:  needs_work    
       Priority:  major                                                         
        |     Milestone:  sage-5.4      
      Component:  combinatorics                                                 
        |    Resolution:                
       Keywords:  Weyl character ring, Demazure characters, Demazure-Lusztig 
operators  |   Work issues:                
Report Upstream:  N/A                                                           
        |     Reviewers:  Anne Schilling
        Authors:  Daniel Bump                                                   
        |     Merged in:                
   Dependencies:                                                                
        |      Stopgaps:                
----------------------------------------------------------------------------------------+

Comment (by bump):

 Thanks ... I thought I tried that.

 > Do you want to keep the "debug" options in _demazure_helper? If so,
 please give a short description of
 > what it is for and a doc test with it.

 My experience (with GNU Go) is that it is a good idea to leave debug code
 in for something this complicated. There is also debug code in the
 Freudenthal method. However this code is not meant
 to be used in normal operation. A doctest would look something like this:

 {{{
 sage: A2=WeylCharacterRing("A2",style="coroots")
 sage: A2.demazure_character((1,1),word=[1,2],debug=True)
 cm[1]=(2, -1)
 cm[2]=(-1, 2)
 i=2
    v=(1, 1), coroot=1
      mu=(1, 1), next[mu]=1
      mu=(2, -1), next[mu]=1
 i=1
    v=(2, -1), coroot=2
      mu=(2, -1), next[mu]=1
      mu=(0, 0), next[mu]=1
      mu=(-2, 1), next[mu]=1
    v=(1, 1), coroot=1
      mu=(1, 1), next[mu]=1
      mu=(-1, 2), next[mu]=1
 a2(0,0) + a2(-2,1) + a2(2,-1) + a2(1,1) + a2(-1,2)
 }}}
 This can be really helpful for figuring out what the code is doing but I'm
 dubious that a doctest is appropriate. Should I take the code out?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13461#comment:10>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
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-trac?hl=en.

Reply via email to