Changeset 7765:22ace0c88075


Ignore:
Timestamp:
11/18/07 23:13:16 (6 years ago)
Author:
Robert L Miller <rlm@…>
Branch:
default
Message:

cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sage/coding/binary_code.pyx

    r7764 r7765  
    18541854        cdef int *self_col_degs = self.col_degs, *self_col_lvls = self.col_lvls, *self_col_ents = self.col_ents 
    18551855        while not self.is_discrete(k) and m < alpha_length: 
    1856             print "m:", m 
    1857             print "alpha:", ','.join(['w'+str(alpha[i]^flag) if alpha[i]&flag else 'c'+str(alpha[i]) for i from 0 <= i < alpha_length]) 
    1858             print self 
     1856#            print "m:", m 
     1857#            print "alpha:", ','.join(['w'+str(alpha[i]^flag) if alpha[i]&flag else 'c'+str(alpha[i]) for i from 0 <= i < alpha_length]) 
     1858#            print self 
    18591859            invariant += 1 
    18601860            j = 0 
     
    19001900                    else: j = i 
    19011901            else: 
    1902                 print 'col' 
     1902#                print 'col' 
    19031903                while j < self.nwords: 
    1904                     print 'j', j 
    1905                     print self 
     1904#                    print 'j', j 
     1905#                    print self 
    19061906                    i = j; s = 0 
    19071907                    invariant += 64 
    19081908                    while True: 
    1909                         print 'i', i 
     1909#                        print 'i', i 
    19101910                        self_wd_degs[i-j] = self.wd_degree(CG, self_wd_ents[i], alpha[m], k, ham_wts) 
    1911                         print 'deg', self_wd_degs[i-j] 
     1911#                        print 'deg', self_wd_degs[i-j] 
    19121912                        if s == 0 and self_wd_degs[i-j] != self_wd_degs[0]: s = 1 
    19131913                        i += 1 
     
    24132413        state = 1 
    24142414        while state != -1: 
    2415             if True:#badass > 39: 
     2415            if False:#badass > 39: 
    24162416                print '-----' 
    24172417                print badass 
     
    24432443                print 'hzf__h_zeta', hzf__h_zeta 
    24442444                print 'qzb', qzb 
    2445             if True: 
     2445            if False: 
    24462446                print "state:", state 
    24472447                print '-----' 
     
    24742474 
    24752475                alpha[0] = nu.split_vertex(v[k-1], k) 
    2476                 print nu 
     2476#                print nu 
    24772477                Lambda[k] = nu.refine(k, alpha, 1, C, ham_wts) # store the invariant to Lambda[k] 
    24782478                # only if this is the first time moving down the search tree: 
     
    25742574 
    25752575                nu.get_permutation(zeta, word_gamma, col_gamma, ham_wts) 
    2576                 print "gamma:", [word_gamma[i] for i from 0 <= i < nwords], [col_gamma[i] for i from 0 <= i < ncols] 
     2576#                print "gamma:", [word_gamma[i] for i from 0 <= i < nwords], [col_gamma[i] for i from 0 <= i < ncols] 
    25772577                # if C^gamma == C, the permutation is an automorphism, goto 10 
    25782578                if C.is_automorphism(col_gamma, word_gamma): 
     
    25992599                # if C(nu) == C(rho), get the automorphism and goto 10 
    26002600                rho.get_permutation(nu, word_gamma, col_gamma, ham_wts) 
    2601                 print "gamma:", [word_gamma[i] for i from 0 <= i < nwords], [col_gamma[i] for i from 0 <= i < ncols] 
     2601#                print "gamma:", [word_gamma[i] for i from 0 <= i < nwords], [col_gamma[i] for i from 0 <= i < ncols] 
    26022602                state = 10 
    26032603 
     
    28732873 
    28742874        # end big while loop 
    2875 #        rho.find_basis(ham_wts) 
    2876 #        for i from 0 <= i < ncols: 
    2877 #            self.labeling[rho.col_ents[i]] = i 
    2878 #        for i from 0 <= i < nrows: 
    2879 #            self.labeling[i+ncols] = rho.basis_locations[i] 
    2880  
    2881  
    2882  
    2883  
    2884  
     2875        rho.find_basis(ham_wts) 
     2876        for i from 0 <= i < ncols: 
     2877            self.labeling[rho.col_ents[i]] = i 
     2878        for i from 0 <= i < nrows: 
     2879            self.labeling[i+ncols] = rho.basis_locations[i] 
     2880 
     2881 
     2882 
     2883 
     2884 
Note: See TracChangeset for help on using the changeset viewer.