Changeset 7765:22ace0c88075
- Timestamp:
- 11/18/07 23:13:16 (6 years ago)
- Branch:
- default
- File:
-
- 1 edited
-
sage/coding/binary_code.pyx (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sage/coding/binary_code.pyx
r7764 r7765 1854 1854 cdef int *self_col_degs = self.col_degs, *self_col_lvls = self.col_lvls, *self_col_ents = self.col_ents 1855 1855 while not self.is_discrete(k) and m < alpha_length: 1856 print "m:", m1857 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 self1856 # 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 1859 1859 invariant += 1 1860 1860 j = 0 … … 1900 1900 else: j = i 1901 1901 else: 1902 print 'col'1902 # print 'col' 1903 1903 while j < self.nwords: 1904 print 'j', j1905 print self1904 # print 'j', j 1905 # print self 1906 1906 i = j; s = 0 1907 1907 invariant += 64 1908 1908 while True: 1909 print 'i', i1909 # print 'i', i 1910 1910 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] 1912 1912 if s == 0 and self_wd_degs[i-j] != self_wd_degs[0]: s = 1 1913 1913 i += 1 … … 2413 2413 state = 1 2414 2414 while state != -1: 2415 if True:#badass > 39:2415 if False:#badass > 39: 2416 2416 print '-----' 2417 2417 print badass … … 2443 2443 print 'hzf__h_zeta', hzf__h_zeta 2444 2444 print 'qzb', qzb 2445 if True:2445 if False: 2446 2446 print "state:", state 2447 2447 print '-----' … … 2474 2474 2475 2475 alpha[0] = nu.split_vertex(v[k-1], k) 2476 print nu2476 # print nu 2477 2477 Lambda[k] = nu.refine(k, alpha, 1, C, ham_wts) # store the invariant to Lambda[k] 2478 2478 # only if this is the first time moving down the search tree: … … 2574 2574 2575 2575 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] 2577 2577 # if C^gamma == C, the permutation is an automorphism, goto 10 2578 2578 if C.is_automorphism(col_gamma, word_gamma): … … 2599 2599 # if C(nu) == C(rho), get the automorphism and goto 10 2600 2600 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] 2602 2602 state = 10 2603 2603 … … 2873 2873 2874 2874 # end big while loop 2875 #rho.find_basis(ham_wts)2876 #for i from 0 <= i < ncols:2877 #self.labeling[rho.col_ents[i]] = i2878 #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.
