[493c477] | 1 | /* emacs edit mode for this file is -*- C++ -*- */ |
---|
[2dd068] | 2 | |
---|
[b52d27] | 3 | /** |
---|
| 4 | * @file cf_defs.h |
---|
| 5 | * |
---|
| 6 | * factory switches. |
---|
| 7 | **/ |
---|
| 8 | |
---|
[2dd068] | 9 | #ifndef INCL_CF_DEFS_H |
---|
[b47a61] | 10 | #define INCL_CF_DEFS_H |
---|
[2dd068] | 11 | |
---|
[88534e9] | 12 | #include "globaldefs.h" |
---|
[e4fe2b] | 13 | // #include "config.h" |
---|
[c6be2f] | 14 | |
---|
[2dd068] | 15 | |
---|
| 16 | #define UndefinedDomain 32000 |
---|
[e73082] | 17 | #define PrimePowerDomain 5 |
---|
[2dd068] | 18 | #define GaloisFieldDomain 4 |
---|
| 19 | #define FiniteFieldDomain 3 |
---|
| 20 | #define RationalDomain 2 |
---|
| 21 | #define IntegerDomain 1 |
---|
| 22 | |
---|
[18bb79] | 23 | /*BEGINPUBLIC*/ |
---|
| 24 | |
---|
| 25 | #define LEVELBASE -1000000 |
---|
| 26 | #define LEVELTRANS -500000 |
---|
| 27 | #define LEVELQUOT 1000000 |
---|
| 28 | #define LEVELEXPR 1000001 |
---|
| 29 | |
---|
[b52d27] | 30 | /// set to 1 for computations over Q |
---|
[454dc14] | 31 | static const int SW_RATIONAL = 0; |
---|
[b52d27] | 32 | /// set to 1 for symmetric representation over F_q |
---|
[454dc14] | 33 | static const int SW_SYMMETRIC_FF = 1; |
---|
[b52d27] | 34 | /// set to 1 to use EZGCD over Z |
---|
[454dc14] | 35 | static const int SW_USE_EZGCD = 2; |
---|
[b52d27] | 36 | /// set to 1 to use EZGCD over F_q |
---|
[454dc14] | 37 | static const int SW_USE_EZGCD_P = 3; |
---|
[b52d27] | 38 | /// set to 1 to sort factors in a factorization |
---|
[454dc14] | 39 | static const int SW_USE_NTL_SORT=4; |
---|
[b52d27] | 40 | /// set to 1 to use modular gcd over Z |
---|
[454dc14] | 41 | static const int SW_USE_CHINREM_GCD=5; |
---|
[b52d27] | 42 | /// set to 1 to use Encarnacion GCD over Q(a) |
---|
[454dc14] | 43 | static const int SW_USE_QGCD=6; |
---|
[b52d27] | 44 | /// set to 1 to use modular GCD over F_q |
---|
[454dc14] | 45 | static const int SW_USE_FF_MOD_GCD=7; |
---|
[62347d] | 46 | /// set to 1 to use Flints gcd over F_p |
---|
| 47 | static const int SW_USE_FL_GCD_P=8; |
---|
| 48 | /// set to 1 to use Flints gcd over Q/Z |
---|
| 49 | static const int SW_USE_FL_GCD_0=9; |
---|
[c1b52b] | 50 | /// set to 1 to use Factorys Berlekamp alg. |
---|
| 51 | static const int SW_BERLEKAMP=10; |
---|
[2dd068] | 52 | |
---|
[e73082] | 53 | static const int SW_FAC_QUADRATICLIFT=11; |
---|
[a872290] | 54 | /// set to 1 to prefer flints multivariate factorization over Z/p |
---|
| 55 | static const int SW_USE_FL_FAC_P=12; |
---|
| 56 | /// set to 1 to prefer flints multivariate factorization over Z/p |
---|
| 57 | static const int SW_USE_FL_FAC_0=13; |
---|
[f53c82] | 58 | /// set to 1 to prefer flints multivariate factorization over Z/p(a) |
---|
| 59 | static const int SW_USE_FL_FAC_0A=14; |
---|
[2dd068] | 60 | /*ENDPUBLIC*/ |
---|
| 61 | |
---|
[8d25143] | 62 | #ifdef HAVE_OMALLOC |
---|
| 63 | #include "omalloc/omalloc.h" |
---|
| 64 | #define NEW_ARRAY(T,N) (T*)omAlloc((N)*sizeof(T)) |
---|
| 65 | #define DELETE_ARRAY(P) omFree(P) |
---|
| 66 | #else |
---|
| 67 | #define NEW_ARRAY(T,N) new T[N] |
---|
[d0dbd7] | 68 | #define DELETE_ARRAY(P) delete[] P |
---|
[8d25143] | 69 | #endif |
---|
[493c477] | 70 | #endif /* ! INCL_CF_DEFS_H */ |
---|