Changeset 12f992 in git
- Timestamp:
- Mar 10, 2014, 2:58:13 PM (10 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- 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
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/extra.cc
rc78743 r12f992 3588 3588 { 3589 3589 #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));3592 3590 Print("EZGCD:%d (use EZGCD for gcd of polynomials in char 0)\n",isOn(SW_USE_EZGCD)); 3593 3591 Print("EZGCD_P:%d (use EZGCD_P for gcd of polynomials in char p)\n",isOn(SW_USE_EZGCD_P)); … … 3605 3603 char *s=(char *)h->Data(); 3606 3604 #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); } else3608 if (strcmp(s,"NTL_p")==0) { if (d) On(SW_USE_NTL_GCD_P); else Off(SW_USE_NTL_GCD_P); } else3609 3605 if (strcmp(s,"EZGCD")==0) { if (d) On(SW_USE_EZGCD); else Off(SW_USE_EZGCD); } else 3610 3606 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 1168 1168 { 1169 1169 // 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: fixed1172 1170 On(SW_USE_EZGCD); 1173 1171 On(SW_USE_CHINREM_GCD); -
factory/cf_defs.h
rc78743 r12f992 27 27 const int SW_RATIONAL = 0; 28 28 const 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; 29 const int SW_USE_EZGCD = 2; 30 const int SW_USE_EZGCD_P = 3; 31 const int SW_USE_NTL_SORT=4; 32 const int SW_USE_CHINREM_GCD=5; 33 const int SW_USE_QGCD=6; 34 const int SW_USE_FF_MOD_GCD=7; 39 35 //}}} 40 36 -
factory/cf_gcd.cc
rc78743 r12f992 336 336 } 337 337 #else 338 if ( isOn(SW_USE_NTL_GCD_P) &&( getCharacteristic() > 0 ) && (CFFactory::gettype() != GaloisFieldDomain)338 if (( getCharacteristic() > 0 ) && (CFFactory::gettype() != GaloisFieldDomain) 339 339 && (f.level()==g.level()) && isPurePoly(f) && isPurePoly(g)) 340 340 { … … 377 377 } 378 378 #else 379 if ( isOn(SW_USE_NTL_GCD_0) &&( getCharacteristic() ==0)379 if (( getCharacteristic() ==0) 380 380 && (f.level()==g.level()) && isPurePoly(f) && isPurePoly(g)) 381 381 { … … 400 400 else 401 401 { 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); 411 408 } 412 409 } … … 422 419 else 423 420 { 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); 433 427 } 434 428 return r; … … 675 669 #else 676 670 #ifdef HAVE_NTL 677 if ( isOn(SW_USE_NTL_GCD_P) &&bpure && (CFFactory::gettype() != GaloisFieldDomain))671 if (bpure && (CFFactory::gettype() != GaloisFieldDomain)) 678 672 return gcd_univar_ntlp(pi, pi1 ) * C; 679 673 #endif … … 794 788 #else 795 789 #ifdef HAVE_NTL 796 if ( isOn(SW_USE_NTL_GCD_0) &&isPurePoly(pi) && isPurePoly(pi1) )790 if (isPurePoly(pi) && isPurePoly(pi1) ) 797 791 return gcd_univar_ntl0(pi, pi1 ) * C; 798 792 #endif -
factory/cf_switches.cc
rc78743 r12f992 31 31 #ifdef HAVE_NTL 32 32 On(SW_USE_CHINREM_GCD); 33 //Off(SW_USE_NTL_GCD_0);34 //Off(SW_USE_NTL_GCD_P);35 33 //Off(SW_USE_NTL_SORT); 36 34 #endif -
factory/cf_switches.h
rc78743 r12f992 18 18 // 19 19 //}}} 20 const int CFSwitchesMax = 12;20 const int CFSwitchesMax = 8; 21 21 //}}} 22 22
Note: See TracChangeset
for help on using the changeset viewer.