Ticket #5457: trac_5457_llt_doc_and_bug_fix-mz.2.patch

File trac_5457_llt_doc_and_bug_fix-mz.2.patch, 3.4 KB (added by zabrocki, 8 years ago)

same patch with commit message

  • sage/combinat/sf/llt.py

    # HG changeset patch
    # User Jeroen Demeyer <jdemeyer@cage.ugent.be>
    # Date 1346525806 -7200
    # Node ID 81ab59ed8534ed2e9b85b9732788d0f82dfaceb5
    # Parent  b0e4ea606917865a0d37bac2ee0c9f5bad5b4e00
    additional patch to fix a bug in the LLT code and doc tests
    
    diff --git a/sage/combinat/sf/llt.py b/sage/combinat/sf/llt.py
    a b class LLT_generic(sfa.SymmetricFunctionA 
    710710            [([1, 1], [([1, 1], 1/t), ([2], -1/t)]),
    711711             ([2], [([1, 1], -1/t), ([2], (t + 1)/t)])]
    712712        """
    713         self._invert_morphism(n, self.base_ring(), self._self_to_m_cache, \
     713        self._invert_morphism(n, QQt, self._self_to_m_cache, \
    714714                              self._m_to_self_cache, to_other_function = self._to_m)
    715715
    716716    class Element(sfa.SymmetricFunctionAlgebra_generic.Element):
    class LLT_spin(LLT_generic): 
    733733            sage: HSp3 = SymmetricFunctions(FractionField(QQ['t'])).llt(3).hspin()
    734734            sage: TestSuite(HSp3).run(skip = ["_test_associativity", "_test_distributivity", "_test_prod"]) # products are too expensive, long time (10s on sage.math, 2012)
    735735            sage: TestSuite(HSp3).run(elements = [HSp3.t*HSp3[1,1]+HSp3.t*HSp3[2], HSp3[1]+(1+HSp3.t)*HSp3[1,1]])  # long time (depends on previous)
     736
     737        ::
     738
    736739            sage: HS3t2 = SymmetricFunctions(QQ).llt(3,t=2).hspin()
    737             sage: TestSuite(HS3t2).run(skip = ["_test_associativity", "_test_distributivity", "_test_prod"]) # products are too expensive
    738             sage: TestSuite(HS3t2).run(elements = [2*HS3t2[1,1]+HS3t2[2], HS3t2[1]+3*HS3t2[1,1]])
     740            sage: TestSuite(HS3t2).run() # products are too expensive
     741
     742        ::
     743
    739744            sage: HS3x = SymmetricFunctions(FractionField(QQ['x'])).llt(3,t=x).hspin()
    740745            sage: TestSuite(HS3x).run(skip = ["_test_associativity", "_test_distributivity", "_test_prod"]) # products are too expensive, long time (4s on sage.math, 2012)
    741746            sage: TestSuite(HS3x).run(elements = [HS3x.t*HS3x[1,1]+HS3x.t*HS3x[2], HS3x[1]+(1+HS3x.t)*HS3x[1,1]])  # long time (depends on previous)
    class LLT_cospin(LLT_generic): 
    800805            sage: HCosp3 = SymmetricFunctions(FractionField(QQ['t'])).llt(3).hcospin()
    801806            sage: TestSuite(HCosp3).run(skip = ["_test_associativity", "_test_distributivity", "_test_prod"]) # products are too expensive, long time (11s on sage.math, 2012)
    802807            sage: TestSuite(HCosp3).run(elements = [HCosp3.t*HCosp3[1,1]+HCosp3.t*HCosp3[2], HCosp3[1]+(1+HCosp3.t)*HCosp3[1,1]])  # long time (depends on previous)
     808
     809        ::
     810
    803811            sage: HC3t2 = SymmetricFunctions(QQ).llt(3,t=2).hcospin()
    804             sage: TestSuite(HC3t2).run(skip = ["_test_associativity", "_test_distributivity", "_test_prod"]) # products are too expensive
    805             sage: TestSuite(HC3t2).run(elements = [2*HC3t2[1,1]+HC3t2[2], HC3t2[1]+3*HC3t2[1,1]])
     812            sage: TestSuite(HC3t2).run() # products are too expensive
     813
     814        ::
     815
    806816            sage: HC3x = SymmetricFunctions(FractionField(QQ['x'])).llt(3,t=x).hcospin()
    807817            sage: TestSuite(HC3x).run(skip = ["_test_associativity", "_test_distributivity", "_test_prod"]) # products are too expensive, long time (5s on sage.math, 2012)
    808818            sage: TestSuite(HC3x).run(elements = [HC3x.t*HC3x[1,1]+HC3x.t*HC3x[2], HC3x[1]+(1+HC3x.t)*HC3x[1,1]])  # long time (depends on previous)