Changeset 2488dc3 in git for factory/cf_gcd.cc
- Timestamp:
- May 11, 2012, 5:46:42 PM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- Children:
- ea5ff1d5094b84bbc2e29abd61b17ca3343f5c23
- Parents:
- 72bfc80277ea4841efcc1006285e513061f17917
- git-author:
- Martin Lee <martinlee84@web.de>2012-05-11 17:46:42+02:00
- git-committer:
- Martin Lee <martinlee84@web.de>2012-07-31 11:31:14+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_gcd.cc
r72bfc8 r2488dc3 1233 1233 cl = gcd (f.lc(),g.lc()); 1234 1234 CanonicalForm gcdcfcg= gcd (cf, cg); 1235 CanonicalForm fp, gp; 1235 1236 CanonicalForm b= 1; 1236 1237 int minCommonDeg= 0; … … 1260 1261 1261 1262 CanonicalForm cof, cog, cofp, cogp, newCof, newCog, cofn, cogn; 1263 int maxNumVars= tmax (getNumVars (f), getNumVars (g)); 1262 1264 //Off (SW_RATIONAL); 1263 1265 while ( true ) … … 1272 1274 //printf("try p=%d\n",p); 1273 1275 setCharacteristic( p ); 1276 fp= mapinto (f); 1277 gp= mapinto (g); 1274 1278 #ifdef HAVE_NTL 1275 Dp = GCD_small_p (mapinto (f), mapinto (g), cofp, cogp); 1279 if (size (fp)/maxNumVars > 500 && size (gp)/maxNumVars > 500) 1280 Dp = GCD_small_p (fp, gp, cofp, cogp); 1281 else 1282 { 1283 Dp= gcd_poly (fp, gp); 1284 cofp= fp/Dp; 1285 cogp= gp/Dp; 1286 } 1276 1287 #else 1277 Dp= gcd_poly ( mapinto (f), mapinto (g));1278 cofp= mapinto (f)/Dp;1279 cogp= mapinto (g)/Dp;1288 Dp= gcd_poly (fp, gp); 1289 cofp= fp/Dp; 1290 cogp= gp/Dp; 1280 1291 #endif 1281 1292 Dp /=Dp.lc();
Note: See TracChangeset
for help on using the changeset viewer.