Changeset 8c73aaf in git
- Timestamp:
- Oct 3, 2020, 10:55:01 PM (4 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 1b2761dba1ef4402e8cb0e95ce3a34e83dd7f691
- Parents:
- 6c613e319ffabdf574fa1930801650f989bb855a
- Location:
- factory
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cfEzgcd.cc
r6c613e r8c73aaf 51 51 TIMING_DEFINE_PRINT(ez_termination) 52 52 53 #ifdef HAVE_NTL // unused otherwise 53 54 static 54 55 int compress4EZGCD (const CanonicalForm& F, const CanonicalForm& G, CFMap & M, … … 189 190 return both_non_zero; 190 191 } 192 #endif 191 193 192 194 static inline … … 380 382 #endif 381 383 384 #ifdef HAVE_NTL // unused otherwise 382 385 static 383 386 bool findeval (const CanonicalForm & F, const CanonicalForm & G, … … 445 448 } 446 449 } 450 #endif 451 447 452 static void gcd_mon_rec(CanonicalForm G, CanonicalForm &cf,int *exp,int pl) 448 453 { // prevoius level: pl … … 462 467 } 463 468 469 #ifdef HAVE_NTL // unused otherwise 464 470 static CanonicalForm gcd_mon(CanonicalForm F, CanonicalForm G) 465 471 { … … 485 491 return res; 486 492 } 493 #endif 487 494 488 495 #ifdef HAVE_NTL // Hensel … … 860 867 861 868 #if defined(HAVE_NTL) || defined(HAVE_FLINT) 869 #ifdef HAVE_NTL // Hensel 862 870 // parameters for heuristic 863 871 STATIC_VAR int maxNumEval= 200; … … 866 874 /// Extended Zassenhaus GCD for finite fields. 867 875 /// In case things become too dense we switch to a modular algorithm. 868 #ifdef HAVE_NTL // Hensel869 876 CanonicalForm EZGCD_P( const CanonicalForm & FF, const CanonicalForm & GG ) 870 877 { -
factory/cfGcdAlgExt.cc
r6c613e r8c73aaf 657 657 myicontent ( const CanonicalForm & f, const CanonicalForm & c ) 658 658 { 659 #if def HAVE_NTL659 #if defined(HAVE_NTL) || defined(HAVE_FLINT) 660 660 if (f.isOne() || c.isOne()) 661 661 return 1; … … 707 707 static CanonicalForm myicontent ( const CanonicalForm & f ) 708 708 { 709 #if def HAVE_NTL709 #if defined(HAVE_NTL) || defined(HAVE_FLINT) 710 710 return myicontent( f, 0 ); 711 711 #else -
factory/cfSubResGcd.cc
r6c613e r8c73aaf 50 50 } 51 51 C = gcd( Ci, Ci1 ); 52 #ifdef HAVE_NTL // gcd_test_one, primitiveElement 52 53 int d= 0; 53 #ifdef HAVE_NTL // gcd_test_one, primitiveElement54 54 if ( !( pi.isUnivariate() && pi1.isUnivariate() ) ) 55 55 { -
factory/cf_irred.cc
r6c613e r8c73aaf 31 31 nmod_poly_init(Irredpoly,p); 32 32 nmod_poly_randtest_monic_irreducible(Irredpoly, FLINTrandom, i+1); 33 CanonicalForm CFirredpoly=convertnmod_poly_t2FacCF(Irredpoly, Variable(1));33 CanonicalForm CFirredpoly=convertnmod_poly_t2FacCF(Irredpoly,x); 34 34 nmod_poly_clear(Irredpoly); 35 35 #elif defined(HAVE_NTL) -
factory/facAlgExt.cc
r6c613e r8c73aaf 59 59 mipo *= bCommonDen (mipo); 60 60 61 int degg= degree (g);62 int degmipo= degree (mipo);63 61 CanonicalForm norm; 64 62 TIMING_START (fac_alg_resultant); 65 63 #ifdef HAVE_NTL 64 int degg= degree (g); 65 int degmipo= degree (mipo); 66 66 if (degg >= 8 || degmipo >= 8) 67 67 norm= resultantZ (g, mipo, x); -
factory/facSparseHensel.cc
r6c613e r8c73aaf 31 31 int si=termsF.size(); 32 32 int fl=factors.length(); 33 int ch=getCharacteristic();34 33 //printf("size:%d, length=%d, char=%d\n",si,fl,getCharacteristic()); 35 34 if ((si > threshold)
Note: See TracChangeset
for help on using the changeset viewer.