Changeset a12d11 in git
- Timestamp:
- Sep 16, 2014, 4:19:13 PM (9 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 86950236405247b95fce3e0e4496f283d7fbcc5a
- Parents:
- 1b62751a4d0f3f4b875f0161483c1a86cc1e1ebf
- Location:
- kernel/GBEngine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/tgb.cc
r1b6275 ra12d11 476 476 } 477 477 478 wlen_type kEBucketLength (kBucket * b, poly lm, int /*sugar*/,slimgb_alg * ca)478 wlen_type kEBucketLength (kBucket * b, poly lm, slimgb_alg * ca) 479 479 { 480 480 wlen_type s = 0; … … 612 612 #endif 613 613 //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); 615 615 //erg*=cs;//for quadratic 616 616 erg *= cs; … … 626 626 if(c->eliminationProblem) 627 627 //if (false) 628 s = kEBucketLength (this->bucket, this->p, this->sugar,c);628 s = kEBucketLength (this->bucket, this->p, c); 629 629 else 630 630 s = bucket_guess (bucket); … … 2858 2858 buf[j].bucket = kBucketCreate (currRing); 2859 2859 p_Test (p[j], c->r); 2860 if(c->eliminationProblem)2861 {2862 buf[j].sugar = c->pTotaldegree_full (p[j]);2863 }2864 2860 int len = pLength (p[j]); 2865 2861 kBucketInit (buf[j].bucket, buf[j].p, len); … … 4340 4336 int old_length = c->strat->lenS[j]; // in view of S 4341 4337 los[bp].p = p; 4342 if(c->eliminationProblem)4343 {4344 los[bp].sugar = c->pTotaldegree_full (p);4345 }4346 4338 kBucketInit (los[bp].bucket, p, old_length); 4347 4339 wlen_type qal = pQuality (clear_into, c, new_length); … … 4509 4501 assume ((i == losl - 1) || (pLmCmp (los[i].p, los[i + 1].p) <= 0)); 4510 4502 assume (is_valid_ro (los[i])); 4511 assume ((!(c->eliminationProblem))4512 || (los[i].sugar >= c->pTotaldegree (los[i].p)));4513 4503 j = kFindDivisibleByInS_easy (strat, los[i]); 4514 4504 if(j >= 0) … … 4901 4891 { 4902 4892 this->do_reduce (r[i]); 4903 if(c->eliminationProblem)4904 {4905 r[i].sugar = si_max (r[i].sugar, reducer_deg);4906 }4907 4893 } 4908 4894 for(i = l; i <= u; i++) … … 4956 4942 } 4957 4943 pNormalize (red); 4958 if(c->eliminationProblem)4959 {4960 r[rn].sugar = c->pTotaldegree_full (red);4961 }4962 4944 4963 4945 if((!(erg.fromS)) && (TEST_V_UPTORADICAL)) -
kernel/GBEngine/tgb_internal.h
r1b6275 ra12d11 292 292 poly p; 293 293 unsigned long sev; 294 int sugar;295 294 void flatten(); 296 295 void validate();
Note: See TracChangeset
for help on using the changeset viewer.