Ticket #5456: trac_5456_preliminary.patch

File trac_5456_preliminary.patch, 1.2 KB (added by Georg S. Weber, 14 years ago)

don't use (preliminary only)

  • sage/modular/modsym/relation_matrix.py

    # HG changeset patch
    # User GeorgSWeber
    # Date 1236506894 -3600
    # Node ID 7ac0d87a8b7c9bfe98e38f452bc77cfc1d72933e
    # Parent  f8fb0bf3e547d65a0f90f5b27d543c8cf4ca9da0
    preliminary patch for trac #5456
    
    diff -r f8fb0bf3e547 -r 7ac0d87a8b7c sage/modular/modsym/relation_matrix.py
    a b  
    104104        else:
    105105            rels.add( ((j,s),(i,1)) )
    106106    misc.verbose("finished creating S relations",tm)
    107     return rels
     107    return sorted(rels)
    108108   
    109109def modI_relations(syms, sign):
    110110    """
     
    131131        assert j != -1
    132132        rels.add( ((i,1),(j,-sign*s)) )
    133133    misc.verbose("finished creating I relations",tm)
    134     return rels
     134    return sorted(rels)
    135135
    136136def T_relation_matrix_wtk_g0(syms, mod, field, weight, sparse):
    137137    """
     
    333333    rels = modS_relations(syms)
    334334    if sign != 0:
    335335        # Let rels = rels union I relations.
    336         rels.update(modI_relations(syms,sign))
     336        rels = sorted(rels.update(modI_relations(syms,sign)))
    337337    mod = sparse_2term_quotient(rels, len(syms), field)
    338338    R = T_relation_matrix_wtk_g0(syms, mod, field, weight, sparse)
    339339    return R, mod