#6621: [with patch, needs review] Permutation.inverse too slow
---------------------------+------------------------------------------------
 Reporter:  aclaesson      |       Owner:  mhansen        
     Type:  enhancement    |      Status:  new            
 Priority:  major          |   Milestone:  sage-4.1.1     
Component:  combinatorics  |    Keywords:                 
 Reviewer:                 |      Author:  Anders Claesson
   Merged:                 |  
---------------------------+------------------------------------------------

Comment(by ddrake):

 Uh oh, this doesn't pass doctests: I get
 {{{
 File
 "/var/tmp/sage-4.1/devel/sage/sage/combinat/symmetric_group_algebra.py",
 line 141:
     sage: QS3.cpi([1,1,1])
 Exception raised:
     Traceback (most recent call last):
       File "/var/tmp/sage-4.1/local/bin/ncadoctest.py", line 1231, in
 run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/var/tmp/sage-4.1/local/bin/sagedoctest.py", line 38, in
 run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/var/tmp/sage-4.1/local/bin/ncadoctest.py", line 1172, in
 run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_6[5]>", line 1, in <module>
         QS3.cpi([Integer(1),Integer(1),Integer(1)])###line 141:
     sage: QS3.cpi([1,1,1])
       File "/var/tmp/sage-4.1/local/lib/python/site-
 packages/sage/combinat/symmetric_group_algebra.py", line 158, in cpi
         cpi += big_coeff *
 character_table[p_index][np.index(g.inverse().cycle_type())] * self(g)
     AttributeError: 'list' object has no attribute 'cycle_type'
 }}}

 Instead of {{{return w}}}, you need {{{return Permutation(w)}}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6621#comment:1>
Sage <http://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