Changeset a12d11 in git


Ignore:
Timestamp:
Sep 16, 2014, 4:19:13 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
86950236405247b95fce3e0e4496f283d7fbcc5a
Parents:
1b62751a4d0f3f4b875f0161483c1a86cc1e1ebf
Message:
fix: handling of sugar in slimgb (from master)
Location:
kernel/GBEngine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/GBEngine/tgb.cc

    r1b6275 ra12d11  
    476476}
    477477
    478 wlen_type kEBucketLength (kBucket * b, poly lm, int /*sugar*/, slimgb_alg * ca)
     478wlen_type kEBucketLength (kBucket * b, poly lm, slimgb_alg * ca)
    479479{
    480480  wlen_type s = 0;
     
    612612#endif
    613613      //FIXME:not quadratic
    614       wlen_type erg = kEBucketLength (this->bucket, this->p, this->sugar, c);
     614      wlen_type erg = kEBucketLength (this->bucket, this->p, c);
    615615      //erg*=cs;//for quadratic
    616616      erg *= cs;
     
    626626    if(c->eliminationProblem)
    627627      //if (false)
    628       s = kEBucketLength (this->bucket, this->p, this->sugar, c);
     628      s = kEBucketLength (this->bucket, this->p, c);
    629629    else
    630630      s = bucket_guess (bucket);
     
    28582858    buf[j].bucket = kBucketCreate (currRing);
    28592859    p_Test (p[j], c->r);
    2860     if(c->eliminationProblem)
    2861     {
    2862       buf[j].sugar = c->pTotaldegree_full (p[j]);
    2863     }
    28642860    int len = pLength (p[j]);
    28652861    kBucketInit (buf[j].bucket, buf[j].p, len);
     
    43404336    int old_length = c->strat->lenS[j]; // in view of S
    43414337    los[bp].p = p;
    4342     if(c->eliminationProblem)
    4343     {
    4344       los[bp].sugar = c->pTotaldegree_full (p);
    4345     }
    43464338    kBucketInit (los[bp].bucket, p, old_length);
    43474339    wlen_type qal = pQuality (clear_into, c, new_length);
     
    45094501    assume ((i == losl - 1) || (pLmCmp (los[i].p, los[i + 1].p) <= 0));
    45104502    assume (is_valid_ro (los[i]));
    4511     assume ((!(c->eliminationProblem))
    4512             || (los[i].sugar >= c->pTotaldegree (los[i].p)));
    45134503    j = kFindDivisibleByInS_easy (strat, los[i]);
    45144504    if(j >= 0)
     
    49014891  {
    49024892    this->do_reduce (r[i]);
    4903     if(c->eliminationProblem)
    4904     {
    4905       r[i].sugar = si_max (r[i].sugar, reducer_deg);
    4906     }
    49074893  }
    49084894  for(i = l; i <= u; i++)
     
    49564942    }
    49574943    pNormalize (red);
    4958     if(c->eliminationProblem)
    4959     {
    4960       r[rn].sugar = c->pTotaldegree_full (red);
    4961     }
    49624944
    49634945    if((!(erg.fromS)) && (TEST_V_UPTORADICAL))
  • kernel/GBEngine/tgb_internal.h

    r1b6275 ra12d11  
    292292  poly p;
    293293  unsigned long sev;
    294   int sugar;
    295294  void flatten();
    296295  void validate();
Note: See TracChangeset for help on using the changeset viewer.