Skip to content

Commit

Permalink
output computed CW coordinates base-1
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonidPryadko committed Nov 28, 2024
1 parent 2723a1e commit 01dd046
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dist_m4ri.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ int do_RW_dist(const csr_t * const spaH0, const csr_t * const spaL0,
else
break;
}
#else /** NEW, use transposed `H` -- the `fastest` version of the code*/
#else /** NEW==1, use transposed `H` -- the `fastest` version of the code*/
word * rawrow = mHT->rows[col];
rci_t j=-1;
while(cnt < minW){/** `cw` of no interest */
Expand All @@ -184,7 +184,7 @@ int do_RW_dist(const csr_t * const spaH0, const csr_t * const spaL0,
if(sparse_syndrome_non_zero(spaH0, cnt, ee)){
printf("# cw of weight %d: [",cnt);
for(int i=0; i<cnt;i++)
printf("%d%s",ee[i],i+1==cnt?" ":"]\n");
printf("%d%s",1+ee[i],i+1==cnt?" ":"]\n");
ERROR("this should not happen: cw not orthogonal to H");
}
#endif /* NDEBUG */
Expand All @@ -202,7 +202,7 @@ int do_RW_dist(const csr_t * const spaH0, const csr_t * const spaL0,
printf("# step=%d row=%d minW=%d found cw of W=%d: [",ii,ir,minW,cnt);
int max = ((cnt<25) || (debug&2048)) ? cnt : 25 ;
for(int i=0; i< max; i++)
printf("%d%s", ee[i], i+1!=max?" ": (cnt==max ? "]\n" : "...]\n"));
printf("%d%s", 1+ee[i], i+1!=max?" ": (cnt==max ? "]\n" : "...]\n"));
}
minW=cnt;
if (minW <= wmin){ /** early termination condition */
Expand Down

0 comments on commit 01dd046

Please sign in to comment.