Changeset 514ade in git for factory/facFqBivar.cc


Ignore:
Timestamp:
Dec 17, 2013, 12:13:13 PM (9 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
Children:
7ed4f6c34d2b1133b547efc14dffe495b47b317e
Parents:
84ac5994873dbb564fbbae08f3f16a378f8abfa0
git-author:
Martin Lee <martinlee84@web.de>2013-12-17 12:13:13+01:00
git-committer:
Martin Lee <martinlee84@web.de>2014-01-20 16:45:03+01:00
Message:
bug fix due to unset NTL characteristic
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/facFqBivar.cc

    r84ac599 r514ade  
    163163          "univariate polynomial expected or constant expected");
    164164  CFFList factorsA;
    165 #ifndef HAVE_FLINT
    166   if (fac_NTL_char != getCharacteristic())
    167   {
    168     fac_NTL_char= getCharacteristic();
    169     zz_p::init (getCharacteristic());
    170   }
    171 #endif
    172165  if (GF)
    173166  {
     
    207200      fq_nmod_ctx_clear (fq_con);
    208201#else
     202      if (fac_NTL_char != getCharacteristic())
     203      {
     204        fac_NTL_char= getCharacteristic();
     205        zz_p::init (getCharacteristic());
     206      }
    209207      zz_pX NTLMipo= convertFacCF2NTLzzpX (mipo.mapinto());
    210208      zz_pE::init (NTLMipo);
     
    267265      fq_nmod_ctx_clear (fq_con);
    268266#else
     267      if (fac_NTL_char != getCharacteristic())
     268      {
     269        fac_NTL_char= getCharacteristic();
     270        zz_p::init (getCharacteristic());
     271      }
    269272      zz_pX NTLMipo= convertFacCF2NTLzzpX (getMipo (alpha));
    270273      zz_pE::init (NTLMipo);
     
    309312    if (getCharacteristic() > 2)
    310313    {
     314      if (fac_NTL_char != getCharacteristic())
     315      {
     316        fac_NTL_char= getCharacteristic();
     317        zz_p::init (getCharacteristic());
     318      }
    311319      zz_pX NTLA= convertFacCF2NTLzzpX (A);
    312320      MakeMonic (NTLA);
Note: See TracChangeset for help on using the changeset viewer.