Changeset 88355eb in git


Ignore:
Timestamp:
Jul 16, 2014, 1:44:20 PM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '4188d308699580d975efd0f6cca8dcb41c396f70')
Children:
2a2e433d4416b4a41ad54af2f8b70c037e825787
Parents:
b90a36f1c9a83b6e90583185b26f6c5730b47975
git-author:
Martin Lee <martinlee84@web.de>2014-07-16 13:44:20+02:00
git-committer:
Martin Lee <martinlee84@web.de>2014-07-17 12:07:11+02:00
Message:
chg: got rid of unnecessary swapping variables
Location:
factory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • factory/cfGcdAlgExt.cc

    rb90a36 r88355eb  
    859859          && f.level() == tmp.level() && tmp.level() == g.level())
    860860      {
    861         CanonicalForm Q, R, sf, sg, stmp;
    862         Variable x= Variable (1);
    863         sf= swapvar (f, f.mvar(), x);
    864         sg= swapvar (g, f.mvar(), x);
    865         stmp= swapvar (tmp, f.mvar(), x);
    866         newtonDivrem (sf, stmp, Q, R);
     861        CanonicalForm Q, R;
     862        newtonDivrem (f, tmp, Q, R);
    867863        if (R.isZero())
    868864        {
    869           newtonDivrem (sg, stmp, Q, R);
     865          newtonDivrem (g, tmp, Q, R);
    870866          if (R.isZero())
    871867          {
  • factory/facMul.cc

    rb90a36 r88355eb  
    37033703  }
    37043704  CanonicalForm Q, R;
    3705   Variable x= Variable (1);
    3706   Variable y= Variable (2);
    3707   newtonDivrem (swapvar (B, y, x), swapvar (A, y, x), Q, R);
     3705  newtonDivrem (B, A, Q, R);
    37083706  if (!isRat)
    37093707    Off (SW_RATIONAL);
Note: See TracChangeset for help on using the changeset viewer.