Changeset 37d038 in git for factory


Ignore:
Timestamp:
Oct 23, 2020, 6:11:01 PM (3 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
Children:
4b24c1908038eb4e15e84478236d2f6eac46173c
Parents:
882ae62b212bc502c8321c242be959710e5781a6
Message:
fix: factorize
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/cf_factor.cc

    r882ae62 r37d038  
    528528    else // char p, multivariate
    529529    {
    530       On (SW_RATIONAL);
    531530      #if defined(HAVE_NTL)
    532531      if (issqrfree)
    533532      {
    534533        CFList factors;
     534        Variable alpha;
    535535        if (CFFactory::gettype() == GaloisFieldDomain)
    536536          factors= GFSqrfFactorize (f);
     
    542542      else
    543543      {
     544        Variable alpha;
    544545        if (CFFactory::gettype() == GaloisFieldDomain)
    545546          F= GFFactorize (f);
     
    548549      }
    549550      #elif defined(HAVE_FLINT) && (__FLINT_RELEASE >= 20700)
     551      #if 0
    550552      nmod_mpoly_ctx_t ctx;
    551553      nmod_mpoly_ctx_init(ctx,f.level(),ORD_LEX,getCharacteristic());
     
    573575      nmod_mpoly_clear(Flint_f,ctx);
    574576      nmod_mpoly_ctx_clear(ctx);
     577      #endif
    575578      #else
    576       factoryError ("multivariate factorization depends on NTL/FLINT(missing)");
     579      factoryError ("multivariate factorization depends on NTL(missing)");
    577580      return CFFList (CFFactor (f, 1));
    578581      #endif
     
    683686      fmpq_mpoly_ctx_clear(ctx);
    684687      #elif defined(HAVE_NTL)
     688      On (SW_RATIONAL);
    685689      if (issqrfree)
    686690      {
    687         On (SW_RATIONAL);
    688691        CFList factors= ratSqrfFactorize (fz);
    689692        for (CFListIterator i= factors; i.hasItem(); i++)
Note: See TracChangeset for help on using the changeset viewer.