Changeset 7772:1d0086a54b0a


Ignore:
Timestamp:
12/11/07 14:46:28 (5 years ago)
Author:
R. L. Miller <rlmillster@…>
Branch:
default
Message:

fixed logic in step 17

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sage/coding/binary_code.pyx

    r7771 r7772  
    22192219 
    22202220        # declare variables: 
    2221         cdef int i, j, ii, jj, iii, jjj # local variables 
     2221        cdef int i, j, ii, jj, iii, jjj, iiii # local variables 
    22222222 
    22232223        cdef PartitionStack nu, zeta, rho # nu is the current position in the tree, 
     
    27262726                    for i from 0 <= i <= l: 
    27272727                        ii = self.Phi_size*i 
     2728                        iiii = 1 
    27282729                        for j from 0 <= j < iii: 
    2729                             if Phi[ii + j] & Phi[jj + j] == Phi[jj + j]: #should do the whole thing, not one at a time! 
     2730                            if Phi[ii + j] & Phi[jj + j] != Phi[jj + j]: 
     2731                                iiii = 0 
     2732                                break 
     2733                        if iiii: 
     2734                            for j from 0 <= j < iii: 
    27302735                                W[jjj + j] &= Omega[ii + j] 
    27312736                e[k] = 1 
Note: See TracChangeset for help on using the changeset viewer.