Changeset fd82c0 in git


Ignore:
Timestamp:
Feb 11, 2022, 10:30:02 PM (2 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
Children:
157b516844d7b1bbccec2128f217700d402cf485
Parents:
ad2a016e1a03aa804b8fba55e43c9dc40b543b68
Message:
fix: rSetFirstWv
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/ring.cc

    rad2a016 rfd82c0  
    31343134}
    31353135
    3136 static void rSetFirstWv(ring r, int i, rRingOrder_t* order, int* block1, int** wvhdl)
     3136static void rSetFirstWv(ring r, int i, rRingOrder_t* order, int* block0, int* block1, int** wvhdl)
    31373137{
    31383138  // cheat for ringorder_aa
     
    31503150  {
    31513151    int j;
    3152     for(j=block1[i]-r->block0[i];j>=0;j--)
     3152    for(j=block1[i]-block0[i];j>=0;j--)
    31533153    {
    31543154      if (r->firstwv[j]==0) r->LexOrder=TRUE;
     
    31593159    int j;
    31603160    int64 *w=rGetWeightVec(r);
    3161     for(j=block1[i]-r->block0[i];j>=0;j--)
     3161    for(j=block1[i]-block0[i];j>=0;j--)
    31623162    {
    31633163      if (w[j]==0) r->LexOrder=TRUE;
     
    33173317    if ((r->VectorOut)||(order[0]==ringorder_C)||(order[0]==ringorder_S)||(order[0]==ringorder_s))
    33183318    {
    3319       rSetFirstWv(r, 1, order, block1, wvhdl);
     3319      rSetFirstWv(r, 1, order, block0, block1, wvhdl);
    33203320    }
    33213321    else
    3322       rSetFirstWv(r, 0, order, block1, wvhdl);
     3322      rSetFirstWv(r, 0, order, block0, block1, wvhdl);
    33233323
    33243324    if ((order[0]!=ringorder_c)
     
    45224522        if (r->order[j-1]==ringorder_a64) l*=2;
    45234523        else if (r->order[j-1]==ringorder_M) l=l*l;
    4524         wvhdl[j]=(int*)omalloc(l*sizeof(int));
     4524        wvhdl[j]=(int*)omalloc(l*sizeof(int)); /*l+1???*/
    45254525        memcpy(wvhdl[j],r->wvhdl[j-1],l*sizeof(int));
    45264526      }
Note: See TracChangeset for help on using the changeset viewer.