Changeset 589ef64 in git


Ignore:
Timestamp:
Aug 21, 2012, 11:00:29 AM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'ad2543eab51733612ba7d118afc77edca719600e')
Children:
5dad7c78535e5d3163be097e8a0d3e8d69c6593e
Parents:
4cf4dc47ae1c8a693ac5bd6b86c07a09f91680cb
git-author:
Martin Lee <martinlee84@web.de>2012-08-21 11:00:29+02:00
git-committer:
Martin Lee <martinlee84@web.de>2012-09-04 18:01:18+02:00
Message:
fix: need to buffer factors
Location:
factory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • factory/facFactorize.cc

    r4cf4dc r589ef64  
    477477    bool success= false;
    478478    CanonicalForm oldSqrfPartFPowLC= oldSqrfPartF*power(LC1,factors.length()-1);
     479    CFList heuResult;
    479480    if (size (oldSqrfPartFPowLC)/getNumVars (oldSqrfPartFPowLC) < 500 &&
    480481        LucksWangSparseHeuristic (oldSqrfPartFPowLC,
    481                                   oldFactors, 2, leadingCoeffs, factors))
    482     {
    483       interMedResult= recoverFactors (oldSqrfPartF, factors);
     482                                  oldFactors, 2, leadingCoeffs, heuResult))
     483    {
     484      interMedResult= recoverFactors (oldSqrfPartF, heuResult);
    484485      if (oldFactors.length() == interMedResult.length())
    485486        success= true;
  • factory/facFqFactorize.cc

    r4cf4dc r589ef64  
    15811581    bool success= false;
    15821582    CanonicalForm oldSqrfPartFPowLC= oldSqrfPartF*power(LC1,factors.length()-1);
     1583    CFList heuResult;
    15831584    if (size (oldSqrfPartFPowLC)/getNumVars (oldSqrfPartFPowLC) < 500 &&
    15841585        LucksWangSparseHeuristic (oldSqrfPartFPowLC,
    1585                                   oldFactors, 2, leadingCoeffs, factors))
    1586     {
    1587       interMedResult= recoverFactors (oldSqrfPartF, factors);
     1586                                  oldFactors, 2, leadingCoeffs, heuResult))
     1587    {
     1588      interMedResult= recoverFactors (oldSqrfPartF, heuResult);
    15881589      if (oldFactors.length() == interMedResult.length())
    15891590        success= true;
Note: See TracChangeset for help on using the changeset viewer.