Changeset 4e6d2a in git
- Timestamp:
- Mar 6, 2012, 11:37:13 AM (12 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 5f92d88b0eec18a7d7e49c0c59e91b75d6d487ee
- Parents:
- 2fbb9e6eb79d5cf73b07f1b64fb533282be9a0e2
- git-author:
- Martin Lee <martinlee84@web.de>2012-03-06 11:37:13+01:00
- git-committer:
- Martin Lee <martinlee84@web.de>2012-04-04 14:42:26+02:00
- Location:
- factory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/facBivar.cc
r2fbb9e6 r4e6d2a 58 58 { 59 59 find_good_prime(i.coeff(),start); 60 if (0==cf_get SmallPrime(start)) return;61 if((i.exp()!=0) && ((i.exp() % cf_get SmallPrime(start))==0))60 if (0==cf_getBigPrime(start)) return; 61 if((i.exp()!=0) && ((i.exp() % cf_getBigPrime(start))==0)) 62 62 { 63 63 start++; … … 73 73 if (f.inZ()) 74 74 { 75 if (0==cf_get SmallPrime(start)) return;76 while((!f.isZero()) && (mod(f,cf_get SmallPrime(start))==0))75 if (0==cf_getBigPrime(start)) return; 76 while((!f.isZero()) && (mod(f,cf_getBigPrime(start))==0)) 77 77 { 78 78 start++; 79 if (0==cf_get SmallPrime(start)) return;79 if (0==cf_getBigPrime(start)) return; 80 80 } 81 81 } … … 594 594 find_good_prime(Aeval,i); 595 595 find_good_prime(A,i); 596 if (i >= cf_getNum SmallPrimes())596 if (i >= cf_getNumBigPrimes()) 597 597 printf ("out of primes\n"); //TODO exit 598 598 599 int p=cf_get SmallPrime(i);599 int p=cf_getBigPrime(i); 600 600 b = coeffBound( A, p ); 601 601 modpk bb= coeffBound (Aeval, p); -
factory/facHensel.cc
r2fbb9e6 r4e6d2a 412 412 CFList s; 413 413 CFList result= recResult; 414 setCharacteristic (p); 415 recResult= mapinto (recResult); 416 setCharacteristic (0); 414 417 CanonicalForm g; 415 418 CanonicalForm modulus= p; … … 430 433 { 431 434 setCharacteristic (p); 432 g= coeffE*j.getItem();435 g= mulNTL (coeffE, j.getItem()); 433 436 g= modNTL (g, bufFactors[ii]); 434 437 setCharacteristic (0);
Note: See TracChangeset
for help on using the changeset viewer.