Changeset 4e6d2a in git


Ignore:
Timestamp:
Mar 6, 2012, 11:37:13 AM (12 years ago)
Author:
Martin Lee <martinlee84@…>
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
Message:
chg: use a big prime instead of a small prime in coeff bound
fix: map recResult in Z/p in diophantineHensel
Location:
factory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • factory/facBivar.cc

    r2fbb9e6 r4e6d2a  
    5858      {
    5959        find_good_prime(i.coeff(),start);
    60         if (0==cf_getSmallPrime(start)) return;
    61         if((i.exp()!=0) && ((i.exp() % cf_getSmallPrime(start))==0))
     60        if (0==cf_getBigPrime(start)) return;
     61        if((i.exp()!=0) && ((i.exp() % cf_getBigPrime(start))==0))
    6262        {
    6363          start++;
     
    7373    if (f.inZ())
    7474    {
    75       if (0==cf_getSmallPrime(start)) return;
    76       while((!f.isZero()) && (mod(f,cf_getSmallPrime(start))==0))
     75      if (0==cf_getBigPrime(start)) return;
     76      while((!f.isZero()) && (mod(f,cf_getBigPrime(start))==0))
    7777      {
    7878        start++;
    79         if (0==cf_getSmallPrime(start)) return;
     79        if (0==cf_getBigPrime(start)) return;
    8080      }
    8181    }
     
    594594    find_good_prime(Aeval,i);
    595595    find_good_prime(A,i);
    596     if (i >= cf_getNumSmallPrimes())
     596    if (i >= cf_getNumBigPrimes())
    597597      printf ("out of primes\n"); //TODO exit
    598598
    599     int p=cf_getSmallPrime(i);
     599    int p=cf_getBigPrime(i);
    600600    b = coeffBound( A, p );
    601601    modpk bb= coeffBound (Aeval, p);
  • factory/facHensel.cc

    r2fbb9e6 r4e6d2a  
    412412  CFList s;
    413413  CFList result= recResult;
     414  setCharacteristic (p);
     415  recResult= mapinto (recResult);
     416  setCharacteristic (0);
    414417  CanonicalForm g;
    415418  CanonicalForm modulus= p;
     
    430433      {
    431434        setCharacteristic (p);
    432         g= coeffE*j.getItem();
     435        g= mulNTL (coeffE, j.getItem());
    433436        g= modNTL (g, bufFactors[ii]);
    434437        setCharacteristic (0);
Note: See TracChangeset for help on using the changeset viewer.