[341696] | 1 | /* $Id$ */ |
---|
[a99e31] | 2 | #ifndef INCL_NTLCONVERT_H |
---|
| 3 | #define INCL_NTLCONVERT_H |
---|
| 4 | |
---|
| 5 | #include <config.h> |
---|
| 6 | |
---|
[9c6887] | 7 | #ifdef HAVE_NTL |
---|
[a99e31] | 8 | |
---|
[9c6887] | 9 | #include "cf_gmp.h" |
---|
[a99e31] | 10 | |
---|
| 11 | #include "cf_defs.h" |
---|
| 12 | #include "canonicalform.h" |
---|
| 13 | #include "cf_iter.h" |
---|
| 14 | #include "fac_berlekamp.h" |
---|
| 15 | #include "fac_cantzass.h" |
---|
| 16 | #include "fac_univar.h" |
---|
| 17 | #include "fac_multivar.h" |
---|
| 18 | #include "fac_sqrfree.h" |
---|
| 19 | #include "cf_algorithm.h" |
---|
| 20 | |
---|
[d30633d] | 21 | |
---|
[ec60a3] | 22 | #include <NTL/ZZXFactoring.h> |
---|
| 23 | #include <NTL/ZZ_pXFactoring.h> |
---|
[f11d7b] | 24 | #include <NTL/lzz_pXFactoring.h> |
---|
[ec60a3] | 25 | #include <NTL/GF2XFactoring.h> |
---|
[a99e31] | 26 | #include "int_int.h" |
---|
| 27 | #include <limits.h> |
---|
[ec60a3] | 28 | #include <NTL/ZZ_pEXFactoring.h> |
---|
[5af844a] | 29 | #include <NTL/lzz_pEXFactoring.h> |
---|
[ec60a3] | 30 | #include <NTL/GF2EXFactoring.h> |
---|
[e950c22] | 31 | #include <NTL/mat_ZZ.h> |
---|
[c24143a] | 32 | #include <NTL/mat_lzz_p.h> |
---|
| 33 | #include <NTL/mat_lzz_pE.h> |
---|
[e950c22] | 34 | |
---|
[9c6887] | 35 | #include "cf_assert.h" |
---|
[a99e31] | 36 | |
---|
[11812a] | 37 | #ifdef NTL_CLIENT // in <NTL/tools.h>: using of name space NTL |
---|
| 38 | NTL_CLIENT |
---|
| 39 | #endif |
---|
| 40 | |
---|
[a99e31] | 41 | ZZ_pX convertFacCF2NTLZZpX(CanonicalForm f); |
---|
[f11d7b] | 42 | zz_pX convertFacCF2NTLzzpX(CanonicalForm f); |
---|
[a99e31] | 43 | GF2X convertFacCF2NTLGF2X(CanonicalForm f); |
---|
| 44 | CanonicalForm convertNTLZZpX2CF(ZZ_pX poly,Variable x); |
---|
[f11d7b] | 45 | CanonicalForm convertNTLzzpX2CF(zz_pX poly,Variable x); |
---|
[a99e31] | 46 | CanonicalForm convertNTLGF2X2CF(GF2X poly,Variable x); |
---|
[f11d7b] | 47 | CanonicalForm convertNTLZZX2CF(ZZX polynom,Variable x); |
---|
[a99e31] | 48 | CFFList convertNTLvec_pair_ZZpX_long2FacCFFList(vec_pair_ZZ_pX_long e,ZZ_p multi,Variable x); |
---|
[f11d7b] | 49 | CFFList convertNTLvec_pair_zzpX_long2FacCFFList(vec_pair_zz_pX_long e,zz_p multi,Variable x); |
---|
[a99e31] | 50 | |
---|
| 51 | CFFList convertNTLvec_pair_GF2X_long2FacCFFList(vec_pair_GF2X_long e,GF2 multi,Variable x); |
---|
| 52 | CanonicalForm convertZZ2CF(ZZ coefficient); |
---|
[f291fcd] | 53 | ZZ convertFacCF2NTLZZ(const CanonicalForm f); |
---|
[a99e31] | 54 | ZZX convertFacCF2NTLZZX(CanonicalForm f); |
---|
| 55 | CFFList convertNTLvec_pair_ZZX_long2FacCFFList(vec_pair_ZZX_long e,ZZ multi,Variable x); |
---|
| 56 | CanonicalForm convertNTLZZpE2CF(ZZ_pE coefficient,Variable x); |
---|
| 57 | CFFList convertNTLvec_pair_ZZpEX_long2FacCFFList(vec_pair_ZZ_pEX_long e,ZZ_pE multi,Variable x,Variable alpha); |
---|
| 58 | CanonicalForm convertNTLGF2E2CF(GF2E coefficient,Variable x); |
---|
| 59 | CFFList convertNTLvec_pair_GF2EX_long2FacCFFList(vec_pair_GF2EX_long e,GF2E multi,Variable x,Variable alpha); |
---|
[b1326b] | 60 | GF2EX convertFacCF2NTLGF2EX(CanonicalForm f,GF2X mipo); |
---|
[d30633d] | 61 | ZZ_pEX convertFacCF2NTLZZ_pEX(CanonicalForm f,ZZ_pX mipo); |
---|
[5af844a] | 62 | zz_pEX convertFacCF2NTLzz_pEX(CanonicalForm f,zz_pX mipo); |
---|
[c48e80] | 63 | CanonicalForm convertNTLzzpE2CF(zz_pE f, Variable x); |
---|
[5af844a] | 64 | CFFList convertNTLvec_pair_zzpEX_long2FacCFFList(vec_pair_zz_pEX_long e,zz_pE multi,Variable x,Variable alpha); |
---|
[c48e80] | 65 | CanonicalForm convertNTLzz_pEX2CF(zz_pEX f, Variable x, Variable alpha); |
---|
[a99e31] | 66 | |
---|
[899d4c] | 67 | mat_ZZ* convertFacCFMatrix2NTLmat_ZZ(CFMatrix &m); |
---|
| 68 | CFMatrix* convertNTLmat_ZZ2FacCFMatrix(mat_ZZ &m); |
---|
[c24143a] | 69 | mat_zz_p* convertFacCFMatrix2NTLmat_zz_p(CFMatrix &m); |
---|
| 70 | CFMatrix* convertNTLmat_zz_p2FacCFMatrix(mat_zz_p &m); |
---|
| 71 | mat_zz_pE* convertFacCFMatrix2NTLmat_zz_pE(CFMatrix &m); |
---|
| 72 | CFMatrix* convertNTLmat_zz_pE2FacCFMatrix(mat_zz_pE &m, Variable alpha); |
---|
| 73 | |
---|
[c6eecb] | 74 | extern int fac_NTL_char; |
---|
[a99e31] | 75 | #endif |
---|
[d30633d] | 76 | #endif |
---|