Changeset 12f992 in git


Ignore:
Timestamp:
Mar 10, 2014, 2:58:13 PM (10 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
b8f562019d20b1ae9a24693975ad6c264a8fa5e9
Parents:
c78743104173a106f27611fdf3b220e3b470d84e
git-author:
Martin Lee <martinlee84@web.de>2014-03-10 14:58:13+01:00
git-committer:
Martin Lee <martinlee84@web.de>2014-03-11 11:06:27+01:00
Message:
chg: deleted SW_USE_NTL_GCD_*
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    rc78743 r12f992  
    35883588        {
    35893589#ifdef HAVE_PLURAL
    3590           Print("NTL_0:%d (use NTL for gcd of polynomials in char 0)\n",isOn(SW_USE_NTL_GCD_0));
    3591           Print("NTL_p:%d (use NTL for gcd of polynomials in char p)\n",isOn(SW_USE_NTL_GCD_P));
    35923590          Print("EZGCD:%d (use EZGCD for gcd of polynomials in char 0)\n",isOn(SW_USE_EZGCD));
    35933591          Print("EZGCD_P:%d (use EZGCD_P for gcd of polynomials in char p)\n",isOn(SW_USE_EZGCD_P));
     
    36053603          char *s=(char *)h->Data();
    36063604#ifdef HAVE_PLURAL
    3607           if (strcmp(s,"NTL_0")==0) { if (d) On(SW_USE_NTL_GCD_0); else Off(SW_USE_NTL_GCD_0); } else
    3608           if (strcmp(s,"NTL_p")==0) { if (d) On(SW_USE_NTL_GCD_P); else Off(SW_USE_NTL_GCD_P); } else
    36093605          if (strcmp(s,"EZGCD")==0) { if (d) On(SW_USE_EZGCD); else Off(SW_USE_EZGCD); } else
    36103606          if (strcmp(s,"EZGCD_P")==0) { if (d) On(SW_USE_EZGCD_P); else Off(SW_USE_EZGCD_P); } else
  • Singular/misc_ip.cc

    rc78743 r12f992  
    11681168{
    11691169// factory default settings: -----------------------------------------------
    1170   On(SW_USE_NTL_GCD_0); // On -> seg11 in Old/algnorm, Old/factor...
    1171   On(SW_USE_NTL_GCD_P); // On -> cyle in Short/brnoeth_s: fixed
    11721170  On(SW_USE_EZGCD);
    11731171  On(SW_USE_CHINREM_GCD);
  • factory/cf_defs.h

    rc78743 r12f992  
    2727const int SW_RATIONAL = 0;
    2828const int SW_SYMMETRIC_FF = 1;
    29 const int SW_BERLEKAMP = 2;
    30 const int SW_FAC_QUADRATICLIFT = 3;
    31 const int SW_USE_EZGCD = 4;
    32 const int SW_USE_EZGCD_P = 5;
    33 const int SW_USE_NTL_GCD_0=6;
    34 const int SW_USE_NTL_GCD_P=7;
    35 const int SW_USE_NTL_SORT=8;
    36 const int SW_USE_CHINREM_GCD=9;
    37 const int SW_USE_QGCD=10;
    38 const int SW_USE_FF_MOD_GCD=11;
     29const int SW_USE_EZGCD = 2;
     30const int SW_USE_EZGCD_P = 3;
     31const int SW_USE_NTL_SORT=4;
     32const int SW_USE_CHINREM_GCD=5;
     33const int SW_USE_QGCD=6;
     34const int SW_USE_FF_MOD_GCD=7;
    3935//}}}
    4036
  • factory/cf_gcd.cc

    rc78743 r12f992  
    336336  }
    337337#else
    338   if (isOn(SW_USE_NTL_GCD_P) && ( getCharacteristic() > 0 ) && (CFFactory::gettype() != GaloisFieldDomain)
     338  if (( getCharacteristic() > 0 ) && (CFFactory::gettype() != GaloisFieldDomain)
    339339  &&  (f.level()==g.level()) && isPurePoly(f) && isPurePoly(g))
    340340  {
     
    377377  }
    378378#else
    379   if (isOn(SW_USE_NTL_GCD_0) && ( getCharacteristic() ==0)
     379  if (( getCharacteristic() ==0)
    380380  && (f.level()==g.level()) && isPurePoly(f) && isPurePoly(g))
    381381  {
     
    400400      else
    401401      {
    402         Off(SW_USE_NTL_GCD_0);
    403         r=extgcd(f,g,a,b);
    404         if (isOn(SW_RATIONAL))
    405         {
    406           a/=r.lc();
    407           b/=r.lc();
    408           r/=r.lc();
    409         }
    410         On(SW_USE_NTL_GCD_0);
     402        F1 /= R;
     403        G1 /= R;
     404        XGCD (RR, A,B,F1,G1,1);
     405        rr=convertZZ2CF(RR);
     406        a=convertNTLZZX2CF(A,f.mvar())*(fc/rr);
     407        b=convertNTLZZX2CF(B,f.mvar())*(gc/rr);
    411408      }
    412409    }
     
    422419      else
    423420      {
    424         Off(SW_USE_NTL_GCD_0);
    425         r=extgcd(f,g,a,b);
    426         if (isOn(SW_RATIONAL))
    427         {
    428           a/=r.lc();
    429           b/=r.lc();
    430           r/=r.lc();
    431         }
    432         On(SW_USE_NTL_GCD_0);
     421        F1 /= R;
     422        G1 /= R;
     423        XGCD (RR, A,B,F1,G1,1);
     424        rr=convertZZ2CF(RR);
     425        a=convertNTLZZX2CF(A,f.mvar())*(fc/rr);
     426        b=convertNTLZZX2CF(B,f.mvar())*(gc/rr);
    433427      }
    434428      return r;
     
    675669#else
    676670#ifdef HAVE_NTL
    677         if ( isOn(SW_USE_NTL_GCD_P) && bpure && (CFFactory::gettype() != GaloisFieldDomain))
     671        if (bpure && (CFFactory::gettype() != GaloisFieldDomain))
    678672            return gcd_univar_ntlp(pi, pi1 ) * C;
    679673#endif
     
    794788#else
    795789#ifdef HAVE_NTL
    796         if ( isOn(SW_USE_NTL_GCD_0) && isPurePoly(pi) && isPurePoly(pi1) )
     790        if (isPurePoly(pi) && isPurePoly(pi1) )
    797791            return gcd_univar_ntl0(pi, pi1 ) * C;
    798792#endif
  • factory/cf_switches.cc

    rc78743 r12f992  
    3131#ifdef HAVE_NTL
    3232  On(SW_USE_CHINREM_GCD);
    33   //Off(SW_USE_NTL_GCD_0);
    34   //Off(SW_USE_NTL_GCD_P);
    3533  //Off(SW_USE_NTL_SORT);
    3634#endif
  • factory/cf_switches.h

    rc78743 r12f992  
    1818//
    1919//}}}
    20 const int CFSwitchesMax = 12;
     20const int CFSwitchesMax = 8;
    2121//}}}
    2222
Note: See TracChangeset for help on using the changeset viewer.