1 | /* $Id$ */ |
---|
2 | #ifndef INCL_NTLCONVERT_H |
---|
3 | #define INCL_NTLCONVERT_H |
---|
4 | |
---|
5 | #ifdef HAVE_NTL |
---|
6 | |
---|
7 | // #include <factory/cf_gmp.h> |
---|
8 | |
---|
9 | #include "cf_defs.h" |
---|
10 | #include "canonicalform.h" |
---|
11 | #include "cf_iter.h" |
---|
12 | #include "fac_berlekamp.h" |
---|
13 | #include "fac_cantzass.h" |
---|
14 | #include "fac_univar.h" |
---|
15 | #include "fac_multivar.h" |
---|
16 | #include "fac_sqrfree.h" |
---|
17 | #include "cf_algorithm.h" |
---|
18 | |
---|
19 | #include <NTL/config.h> |
---|
20 | |
---|
21 | #ifdef NTL_STD_CXX |
---|
22 | #ifdef NOSTREAMIO |
---|
23 | # ifdef HAVE_IOSTREAM |
---|
24 | # include <iostream> |
---|
25 | # define OSTREAM std::ostream |
---|
26 | # define ISTREAM std::istream |
---|
27 | # elif defined(HAVE_IOSTREAM_H) |
---|
28 | # include <iostream.h> |
---|
29 | # define OSTREAM ostream |
---|
30 | # define ISTREAM istream |
---|
31 | # endif |
---|
32 | #endif /* ! NOSTREAMIO */ |
---|
33 | #endif |
---|
34 | |
---|
35 | |
---|
36 | #include <NTL/ZZXFactoring.h> |
---|
37 | #include <NTL/ZZ_pXFactoring.h> |
---|
38 | #include <NTL/lzz_pXFactoring.h> |
---|
39 | #include <NTL/GF2XFactoring.h> |
---|
40 | #include <NTL/ZZ_pEXFactoring.h> |
---|
41 | #include <NTL/lzz_pEXFactoring.h> |
---|
42 | #include <NTL/GF2EXFactoring.h> |
---|
43 | #include <NTL/mat_ZZ.h> |
---|
44 | #include <NTL/mat_lzz_p.h> |
---|
45 | #include <NTL/mat_lzz_pE.h> |
---|
46 | |
---|
47 | #ifdef NTL_CLIENT // in <NTL/tools.h>: using of name space NTL |
---|
48 | NTL_CLIENT |
---|
49 | #endif |
---|
50 | |
---|
51 | |
---|
52 | |
---|
53 | |
---|
54 | #include "int_int.h" |
---|
55 | #include "cf_assert.h" |
---|
56 | |
---|
57 | |
---|
58 | ZZ_pX convertFacCF2NTLZZpX(CanonicalForm f); |
---|
59 | zz_pX convertFacCF2NTLzzpX(CanonicalForm f); |
---|
60 | GF2X convertFacCF2NTLGF2X(CanonicalForm f); |
---|
61 | CanonicalForm convertNTLZZpX2CF(ZZ_pX poly,Variable x); |
---|
62 | CanonicalForm convertNTLzzpX2CF(zz_pX poly,Variable x); |
---|
63 | CanonicalForm convertNTLGF2X2CF(GF2X poly,Variable x); |
---|
64 | CanonicalForm convertNTLZZX2CF(ZZX polynom,Variable x); |
---|
65 | CFFList convertNTLvec_pair_ZZpX_long2FacCFFList(vec_pair_ZZ_pX_long e,ZZ_p multi,Variable x); |
---|
66 | CFFList convertNTLvec_pair_zzpX_long2FacCFFList(vec_pair_zz_pX_long e,zz_p multi,Variable x); |
---|
67 | |
---|
68 | CFFList convertNTLvec_pair_GF2X_long2FacCFFList(vec_pair_GF2X_long e,GF2 multi,Variable x); |
---|
69 | CanonicalForm convertZZ2CF(ZZ coefficient); |
---|
70 | ZZ convertFacCF2NTLZZ(const CanonicalForm f); |
---|
71 | ZZX convertFacCF2NTLZZX(CanonicalForm f); |
---|
72 | CFFList convertNTLvec_pair_ZZX_long2FacCFFList(vec_pair_ZZX_long e,ZZ multi,Variable x); |
---|
73 | CanonicalForm convertNTLZZpE2CF(ZZ_pE coefficient,Variable x); |
---|
74 | CFFList convertNTLvec_pair_ZZpEX_long2FacCFFList(vec_pair_ZZ_pEX_long e,ZZ_pE multi,Variable x,Variable alpha); |
---|
75 | CanonicalForm convertNTLGF2E2CF(GF2E coefficient,Variable x); |
---|
76 | CFFList convertNTLvec_pair_GF2EX_long2FacCFFList(vec_pair_GF2EX_long e,GF2E multi,Variable x,Variable alpha); |
---|
77 | GF2EX convertFacCF2NTLGF2EX(CanonicalForm f,GF2X mipo); |
---|
78 | ZZ_pEX convertFacCF2NTLZZ_pEX(CanonicalForm f,ZZ_pX mipo); |
---|
79 | zz_pEX convertFacCF2NTLzz_pEX(CanonicalForm f,zz_pX mipo); |
---|
80 | CanonicalForm convertNTLzzpE2CF(zz_pE f, Variable x); |
---|
81 | CFFList convertNTLvec_pair_zzpEX_long2FacCFFList(vec_pair_zz_pEX_long e,zz_pE multi,Variable x,Variable alpha); |
---|
82 | CanonicalForm convertNTLzz_pEX2CF(zz_pEX f, Variable x, Variable alpha); |
---|
83 | |
---|
84 | mat_ZZ* convertFacCFMatrix2NTLmat_ZZ(CFMatrix &m); |
---|
85 | CFMatrix* convertNTLmat_ZZ2FacCFMatrix(mat_ZZ &m); |
---|
86 | mat_zz_p* convertFacCFMatrix2NTLmat_zz_p(CFMatrix &m); |
---|
87 | CFMatrix* convertNTLmat_zz_p2FacCFMatrix(mat_zz_p &m); |
---|
88 | mat_zz_pE* convertFacCFMatrix2NTLmat_zz_pE(CFMatrix &m); |
---|
89 | CFMatrix* convertNTLmat_zz_pE2FacCFMatrix(mat_zz_pE &m, Variable alpha); |
---|
90 | |
---|
91 | extern long fac_NTL_char; |
---|
92 | #endif |
---|
93 | #endif |
---|