Changeset 3c25c9 in git


Ignore:
Timestamp:
Apr 23, 2012, 4:58:13 PM (12 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
6f8d6f9137c56e72b78c6ae9c87f1d0d5e77bb97
Parents:
9127ccb90083f98a048e3f5e25884a44dd454af9
git-author:
Martin Lee <martinlee84@web.de>2012-04-23 16:58:13+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-04-24 16:07:29+02:00
Message:
chg: more trivial checks
Location:
factory
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • factory/facBivar.cc

    r9127cc r3c25c9  
    426426
    427427  //check trivial case
    428   if (degree (A) == 1 || degree (A, 1) == 1)
     428  if (degree (A) == 1 || degree (A, 1) == 1 ||
     429      (size (A) == 2 && gcd (degree (A), degree (A,1)).isOne()))
    429430  {
    430431    CFList factors;
  • factory/facFqBivar.cc

    r9127cc r3c25c9  
    56835683  }
    56845684
     5685 
    56855686  //check trivial case
    5686   if (degree (A) == 1 || degree (A, 1) == 1)
     5687  if (degree (A) == 1 || degree (A, 1) == 1 ||
     5688      (size (A) == 2 && gcd (degree (A), degree (A,1)).isOne()))
    56875689  {
    56885690    factors.append (A);
     
    59615963  }
    59625964
    5963   A= A (y + evaluation, y);
    5964 
    59655965  int liftBound= degree (A, y) + 1;
    59665966
    59675967  int boundsLength;
    5968   int * bounds= computeBounds (A (y - evaluation, y), boundsLength);
     5968  int * bounds= computeBounds (A, boundsLength);
    59695969  int minBound= bounds[0];
    59705970  for (int i= 1; i < boundsLength; i++)
     
    59735973      minBound= tmin (minBound, bounds[i]);
    59745974  }
     5975
     5976  A= A (y + evaluation, y);
    59755977
    59765978  int degMipo= 1;
  • factory/facFqBivar.h

    r9127cc r3c25c9  
    398398  mat_ZZ M;
    399399  vec_ZZ S;
    400   CanonicalForm oldF= F;
    401400  F= compress (F, M, S);
    402401  CanonicalForm pthRoot, A, tmp;
Note: See TracChangeset for help on using the changeset viewer.