Changeset 4fe8a3 in git for factory


Ignore:
Timestamp:
Dec 1, 2011, 6:39:27 PM (12 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c5facdfddea2addfd91babd8b9019161dea4b695')
Children:
ec16f0199ed44b447d2ee4b422e70390f093a942
Parents:
eefc3a498c04d352c93280e8e8d0cafe97f4e754
git-author:
Martin Lee <martinlee84@web.de>2011-12-01 18:39:27+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-12-12 18:00:42+01:00
Message:
add: switched on Lucks/Wang sparse heuristic
Location:
factory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • factory/facFactorize.cc

    reefc3a r4fe8a3  
    846846  A /= hh;
    847847
     848  if (LucksWangSparseHeuristic (A, biFactors, 2, leadingCoeffs2 [A.level() - 3],
     849      factors))
     850  {
     851    int check= factors.length();
     852    factors= recoverFactors (A, factors);
     853
     854    if (check == factors.length())
     855    {
     856      appendSwapDecompress (factors, contentAFactors, N, 0, 0, x);
     857      normalize (factors);
     858      delete [] Aeval2;
     859      return factors;
     860    }
     861    else
     862      factors= CFList();
     863  }
     864
     865
    848866  //shifting to zero
    849867  A= shift2Zero (A, Aeval, evaluation);
  • factory/facFqFactorize.cc

    reefc3a r4fe8a3  
    25712571  A /= hh;
    25722572
     2573  if (LucksWangSparseHeuristic (A, biFactors, 2, leadingCoeffs2 [A.level() - 3],
     2574      factors))
     2575  {
     2576    int check= factors.length();
     2577    factors= recoverFactors (A, factors);
     2578
     2579    if (check == factors.length())
     2580    {
     2581      if (extension)
     2582        factors= extNonMonicFactorRecombination (factors, A, info);
     2583
     2584      appendSwapDecompress (factors, contentAFactors, N, swapLevel,
     2585                            swapLevel2, x);
     2586      normalize (factors);
     2587      delete [] Aeval2;
     2588      return factors;
     2589    }
     2590    else
     2591      factors= CFList();
     2592    //TODO handle this case
     2593  }
     2594
    25732595  A= shift2Zero (A, Aeval, evaluation);
    25742596
Note: See TracChangeset for help on using the changeset viewer.