Changeset 71a4d7 in git for factory/fac_ezgcd.cc


Ignore:
Timestamp:
Feb 18, 2013, 5:10:09 PM (11 years ago)
Author:
Oleksandr Motsak <malex984@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
65148c4d2a607796fbd578ae2f3219965019aaae
Parents:
d826a82d3b17fc5f6da647679a15d4f1af7657fdf1becf6c8965f6addf0a63ca09a9418a48c294be
Message:
Merge pull request #264 from mmklee/sync

Sync Master and Spielwiese
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/fac_ezgcd.cc

    rd826a8 r71a4d7  
    296296
    297297  CFList evaluation;
     298  long termEstimate= size (U);
    298299  for (int i= A.min(); i <= A.max(); i++)
     300  {
     301    if (!A[i].isZero())
     302    {
     303      termEstimate *= degree (U,i)*2;
     304      termEstimate /= 3;
     305    }
    299306    evaluation.append (A [i]);
     307  }
     308  if (termEstimate/getNumVars(U) > 500)
     309    return -1;
    300310  CFList UEval;
    301311  CanonicalForm shiftedU= myShift2Zero (U, UEval, evaluation);
     
    425435  int degF, degG, delta, t, count, maxeval;
    426436  REvaluation bt;
    427   bool gcdfound = false;
     437  int gcdfound = 0;
    428438  Variable x = Variable(1);
    429439  count= 0;
     
    470480    if(F.mvar()==G.mvar())
    471481      d*=gcd(F,G);
     482    else
     483      return N (d);
    472484    return N (d);
     485  }
     486  if ( F.isUnivariate())
     487  {
     488    g= content (G,G.mvar());
     489    return N(d*gcd(F,g));
     490  }
     491  if ( G.isUnivariate())
     492  {
     493    f= content (F,F.mvar());
     494    return N(d*gcd(G,f));
    473495  }
    474496
Note: See TracChangeset for help on using the changeset viewer.