Changeset 7ddfab in git
- Timestamp:
- Jul 13, 2018, 3:51:16 PM (5 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 55b29ffa7e5ceaaf5e8681e442c601fdf88fd855
- Parents:
- 0612fd84c8ed63efc96d7b8645ceb1f37b32cd17
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/kInline.h
r0612fd r7ddfab 334 334 pNormalize(p); 335 335 } 336 if (bucket!=NULL) kBucketNormalize(bucket); 337 } 338 339 KINLINE void sLObject::CanonicalizeP() 340 { 341 if (bucket != NULL) 342 kBucketCanonicalize(bucket); 336 343 } 337 344 … … 638 645 Set(pn, tailRing); 639 646 return ret; 640 }641 642 KINLINE poly sLObject::CanonicalizeP()643 {644 //kTest_L(this);645 int i = -1;646 647 if (bucket != NULL)648 i = kBucketCanonicalize(bucket);649 650 if (p == NULL)651 p = k_LmInit_tailRing_2_currRing(t_p, tailRing);652 653 if (i >= 0) pNext(p) = bucket->buckets[i];654 return p;655 647 } 656 648 -
kernel/GBEngine/kstd1.cc
r0612fd r7ddfab 993 993 if (L->bucket != NULL) 994 994 { 995 poly p = L->CanonicalizeP(); 996 BOOLEAN ret = hasPurePower(p, last, length, strat); 997 pNext(p) = NULL; 998 return ret; 995 poly p = L->GetP(); 996 return hasPurePower(p, last, length, strat); 999 997 } 1000 998 else -
kernel/GBEngine/kutil.h
r0612fd r7ddfab 220 220 // does not delete bucket, just canonicalizes it 221 221 // returned poly is such that Lm(p) \in currRing, Tail(p) \in tailRing 222 KINLINE polyCanonicalizeP();222 KINLINE void CanonicalizeP(); 223 223 224 224 // makes a copy of the poly of L -
libpolys/polys/kbuckets.cc
r0612fd r7ddfab 369 369 int kBucketCanonicalize(kBucket_pt bucket) 370 370 { 371 #ifndef HAVE_PSEUDO_BUCKETS 371 372 assume(bucket->buckets_used<=MAX_BUCKET); 372 373 MULTIPLY_BUCKET(bucket,1); … … 438 439 kbTest(bucket); 439 440 return i; 441 #endif 442 } 443 444 void kBucketNormalize(kBucket_pt bucket) 445 { 446 #ifdef HAVE_PSEUDO_BUCKETS 447 p_Normalize(bucket->p,bucket->bucket_ring); 448 #else 449 MULTIPLY_BUCKET(bucket,1); 450 for (int i=0; i<=bucket->buckets_used; i++) 451 { 452 p_Normalize(bucket->buckets[i],bucket->bucket_ring); 453 } 454 #endif 440 455 } 441 456 -
libpolys/polys/kbuckets.h
r0612fd r7ddfab 48 48 } 49 49 50 // Canonicalizes Bpoly, i.e. converts polys of buckets into one poly in51 // one bucket: Returns number of bucket into which it is canonicalized50 /// Canonicalizes Bpoly, i.e. converts polys of buckets into one poly in 51 /// one bucket: Returns number of bucket into which it is canonicalized 52 52 int kBucketCanonicalize(kBucket_pt bucket); 53 54 /// apply n_Normalize to all coefficients 55 void kBucketNormalize(kBucket_pt bucket); 53 56 54 57 /////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.