Changeset 4704674 in git for factory/cf_gcd_smallp.cc
- Timestamp:
- Apr 26, 2012, 10:46:57 AM (11 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- cb7827a842fd2e9878498f940e9f7735fdbe488e
- Parents:
- 9f84ad2f3376850c4d78697edb203d32c07d3094
- git-author:
- Martin Lee <martinlee84@web.de>2012-04-26 10:46:57+02:00
- git-committer:
- Martin Lee <martinlee84@web.de>2012-05-07 14:16:24+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_gcd_smallp.cc
r9f84ad r4704674 560 560 CanonicalForm prim_elem, im_prim_elem; 561 561 CFList source, dest; 562 int bound= tmin (degree (ppA, 1), degree (ppB, 1)); 563 int count= 0; 562 564 do 563 565 { … … 665 667 G_m= 0; 666 668 d= d0; 669 count= 0; 667 670 } 668 671 … … 672 675 "time for newton interpolation: "); 673 676 677 count++; 674 678 //termination test 675 679 if (uni_lcoeff (H) == gcdlcAlcB) … … 682 686 //maybe it's better to test if ppH is an element of F(\alpha) before 683 687 //mapping down 684 if (fdivides (ppH, ppA) && fdivides (ppH, ppB)) 688 DEBOUTLN (cerr, "ppH before mapDown= " << ppH); 689 ppH= mapDown (ppH, prim_elem, im_prim_elem, alpha, u, v); 690 ppH /= Lc(ppH); 691 DEBOUTLN (cerr, "ppH after mapDown= " << ppH); 692 if ((count == bound) || (fdivides (ppH, ppA) && fdivides (ppH, ppB))) 685 693 { 686 694 DEBOUTLN (cerr, "ppH before mapDown= " << ppH); … … 693 701 } 694 702 } 695 else if ( fdivides (ppH, ppA) && fdivides (ppH, ppB))703 else if ((count == bound) || (fdivides (ppH, ppA) && fdivides (ppH, ppB))) 696 704 { 697 705 if (compressConvexDense) … … 882 890 int expon; 883 891 char gf_name_buf= gf_name; 892 int bound= tmin (degree (ppA, 1), degree (ppB, 1)); 893 int count= 0; 884 894 do 885 895 { … … 963 973 G_m= 0; 964 974 d= d0; 975 count= 0; 965 976 } 966 977 … … 969 980 TIMING_END_AND_PRINT (newton_interpolation, "time for newton interpolation: "); 970 981 982 count++; 971 983 //termination test 972 984 if (uni_lcoeff (H) == gcdlcAlcB) … … 976 988 if (inextension) 977 989 { 978 if ( fdivides(ppH, ppA) && fdivides(ppH, ppB))990 if ((count == bound) || (fdivides(ppH, ppA) && fdivides(ppH, ppB))) 979 991 { 980 992 DEBOUTLN (cerr, "ppH before mapDown= " << ppH); … … 1186 1198 topLevel= false; 1187 1199 CFList source, dest; 1200 int bound= tmin (degree (ppA, 1), degree (ppB, 1)); 1201 int count= 0; 1188 1202 do 1189 1203 { … … 1332 1346 G_m= 0; 1333 1347 d= d0; 1348 count= 0; 1334 1349 } 1335 1350 … … 1339 1354 "time for newton_interpolation: "); 1340 1355 1356 count++; 1341 1357 //termination test 1342 1358 if (uni_lcoeff (H) == gcdlcAlcB) … … 1346 1362 ppH /= Lc (ppH); 1347 1363 DEBOUTLN (cerr, "ppH= " << ppH); 1348 if ( fdivides (ppH, ppA) && fdivides (ppH, ppB))1364 if ((count == bound) || (fdivides (ppH, ppA) && fdivides (ppH, ppB))) 1349 1365 { 1350 1366 if (compressConvexDense)
Note: See TracChangeset
for help on using the changeset viewer.