#14261: Iwahori-Hecke algebra with several bases
-------------------------------------+-------------------------------------
       Reporter:  brant              |        Owner:  sage-combinat
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-5.12
      Component:  combinatorics      |   Resolution:
       Keywords:  Iwahori Hecke      |    Merged in:
  algebra                            |    Reviewers:  Andrew Mathas, Brant
        Authors:  Brant Jones,       |  Jones, Travis Scrimshaw
  Travis Scrimshaw                   |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |     Stopgaps:
   Dependencies:  #13735 #14014      |
  #14678 #14516                      |
-------------------------------------+-------------------------------------

Comment (by andrew.mathas):

 '''How should we print elements of the Hecke algebra?'''

 Currently the Hecke algebra elements in different bases are printed in
 different ways:
 {{{
 sage: R<v> = LaurentPolynomialRing(QQ, 'v')
 sage: H = IwahoriHeckeAlgebra(['A',2], v**2)
 sage: H.T()[1,2,1]
 T1*T2*T1
 sage: H.C()[1,2,1]
 C[s1*s2*s1]
 }}}
 I think that the default printing for the different bases should be
 consistent. We clearly cannot print the KL-bases as `C1*C2*C1` as this is
 not equal to `C[1,2,1]`.

 I also think that it is good to have the (default) output being valid
 input so that you can cut and paste it directly back into sage. For these
 reasons I would prefer:
 {{{
 sage: H.T()[1,2,1]
 T[1,2,1]
 sage: H.C()[1,2,1]
 C[1,2,1]
 }}}
 I also think this is more readable than the current output because it is
 easier to identify the permutation, as a Coxeter word, which indexes each
 basis element. Another advanatage is that it simplifies the code.

 Please let me know what you think.

--
Ticket URL: <http://trac.sagemath.org/ticket/14261#comment:45>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to