Changeset fd4146 in git


Ignore:
Timestamp:
Mar 20, 2012, 6:42:42 PM (11 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
4e17e756636ff916fc6ee4d68b7d5079d2ba2642
Parents:
dc390ce13119de61633c0198d8b80e1e0d75c091
git-author:
Martin Lee <martinlee84@web.de>2012-03-20 18:42:42+01:00
git-committer:
Martin Lee <martinlee84@web.de>2012-04-04 14:42:27+02:00
Message:
fix: bug in evaluation point search
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/facBivar.cc

    rdc390c rfd4146  
    174174      {
    175175        if (testPoint (F, result, -i))
     176        {
     177          i= -i;
    176178          return result;
     179        }
     180        else if (i < 0)
     181          i= -i;
    177182      }
    178183      k++;
     
    489494    bufAeval2= evalPoint (buf, bufEvaluation2);
    490495
    491 
    492496    // univariate factorization
    493497    TIMING_START (uni_factorize);
     
    594598      if (bufUniFactors.length() < uniFactors.length())
    595599      {
    596         if (evaluation != 0)
    597         {
    598           uniFactors= bufUniFactors;
    599           Aeval= bufAeval;
    600           evaluation= bufEvaluation;
    601         }
    602       }
    603     }
    604     bufEvaluation++;
    605     bufEvaluation2++;
    606   }
    607 
    608   if (evaluation != 0 && (uniFactors.length() > uniFactors2.length() ||
     600        uniFactors= bufUniFactors;
     601        Aeval= bufAeval;
     602        evaluation= bufEvaluation;
     603      }
     604    }
     605    if (bufEvaluation > 0)
     606      bufEvaluation++;
     607    else
     608      bufEvaluation= -bufEvaluation + 1;
     609    if (bufEvaluation > 0)
     610      bufEvaluation2++;
     611    else
     612      bufEvaluation2= -bufEvaluation2 + 1;
     613  }
     614
     615  if (uniFactors.length() > uniFactors2.length() ||
    609616      (uniFactors.length() == uniFactors2.length()
    610        && degs.getLength() > degs2.getLength())))
     617       && degs.getLength() > degs2.getLength()))
    611618  {
    612619    degs= degs2;
Note: See TracChangeset for help on using the changeset viewer.