source: git/factory/NTLconvert.h @ fbb0173

spielwiese
Last change on this file since fbb0173 was 2db7ae, checked in by Hans Schoenemann <hannes@…>, 13 years ago
disabled cf_hnf: does not compile with NTL with NTL_STD_CXX set
  • Property mode set to 100644
File size: 3.1 KB
Line 
1/* $Id$ */
2#ifndef INCL_NTLCONVERT_H
3#define INCL_NTLCONVERT_H
4
5#include <config.h>
6
7#ifdef HAVE_NTL
8
9#include "cf_gmp.h"
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
21
22#include <NTL/config.h>
23#ifdef NTL_STD_CXX
24#ifdef NOSTREAMIO
25#  ifdef HAVE_IOSTREAM
26#    include <iostream>
27#    define OSTREAM std::ostream
28#    define ISTREAM std::istream
29#  elif defined(HAVE_IOSTREAM_H)
30#    include <iostream.h>
31#    define OSTREAM ostream
32#    define ISTREAM istream
33#  endif
34#endif /* ! NOSTREAMIO */
35#endif
36
37#include <NTL/ZZXFactoring.h>
38#include <NTL/ZZ_pXFactoring.h>
39#include <NTL/lzz_pXFactoring.h>
40#include <NTL/GF2XFactoring.h>
41#include "int_int.h"
42#include <NTL/ZZ_pEXFactoring.h>
43#include <NTL/lzz_pEXFactoring.h>
44#include <NTL/GF2EXFactoring.h>
45#include <NTL/mat_ZZ.h>
46#include <NTL/mat_lzz_p.h>
47#include <NTL/mat_lzz_pE.h>
48
49#include "cf_assert.h"
50
51#ifdef NTL_CLIENT               // in <NTL/tools.h>: using of name space NTL
52NTL_CLIENT
53#endif
54
55ZZ_pX convertFacCF2NTLZZpX(CanonicalForm f);
56zz_pX convertFacCF2NTLzzpX(CanonicalForm f);
57GF2X convertFacCF2NTLGF2X(CanonicalForm f);
58CanonicalForm convertNTLZZpX2CF(ZZ_pX poly,Variable x);
59CanonicalForm convertNTLzzpX2CF(zz_pX poly,Variable x);
60CanonicalForm convertNTLGF2X2CF(GF2X poly,Variable x);
61CanonicalForm convertNTLZZX2CF(ZZX polynom,Variable x);
62CFFList convertNTLvec_pair_ZZpX_long2FacCFFList(vec_pair_ZZ_pX_long e,ZZ_p multi,Variable x);
63CFFList convertNTLvec_pair_zzpX_long2FacCFFList(vec_pair_zz_pX_long e,zz_p multi,Variable x);
64
65CFFList convertNTLvec_pair_GF2X_long2FacCFFList(vec_pair_GF2X_long e,GF2 multi,Variable x);
66CanonicalForm convertZZ2CF(ZZ coefficient);
67ZZ convertFacCF2NTLZZ(const CanonicalForm f);
68ZZX convertFacCF2NTLZZX(CanonicalForm f);
69CFFList convertNTLvec_pair_ZZX_long2FacCFFList(vec_pair_ZZX_long e,ZZ multi,Variable x);
70CanonicalForm convertNTLZZpE2CF(ZZ_pE coefficient,Variable x);
71CFFList convertNTLvec_pair_ZZpEX_long2FacCFFList(vec_pair_ZZ_pEX_long e,ZZ_pE multi,Variable x,Variable alpha);
72CanonicalForm convertNTLGF2E2CF(GF2E coefficient,Variable x);
73CFFList convertNTLvec_pair_GF2EX_long2FacCFFList(vec_pair_GF2EX_long e,GF2E multi,Variable x,Variable alpha);
74GF2EX convertFacCF2NTLGF2EX(CanonicalForm f,GF2X mipo);
75ZZ_pEX convertFacCF2NTLZZ_pEX(CanonicalForm f,ZZ_pX mipo);
76zz_pEX convertFacCF2NTLzz_pEX(CanonicalForm f,zz_pX mipo);
77CanonicalForm convertNTLzzpE2CF(zz_pE f, Variable x);
78CFFList convertNTLvec_pair_zzpEX_long2FacCFFList(vec_pair_zz_pEX_long e,zz_pE multi,Variable x,Variable alpha);
79CanonicalForm convertNTLzz_pEX2CF(zz_pEX f, Variable x, Variable alpha);
80
81mat_ZZ* convertFacCFMatrix2NTLmat_ZZ(CFMatrix &m);
82CFMatrix* convertNTLmat_ZZ2FacCFMatrix(mat_ZZ &m);
83mat_zz_p* convertFacCFMatrix2NTLmat_zz_p(CFMatrix &m);
84CFMatrix* convertNTLmat_zz_p2FacCFMatrix(mat_zz_p &m);
85mat_zz_pE* convertFacCFMatrix2NTLmat_zz_pE(CFMatrix &m);
86CFMatrix* convertNTLmat_zz_pE2FacCFMatrix(mat_zz_pE &m, Variable alpha);
87
88extern int fac_NTL_char;
89#endif
90#endif
Note: See TracBrowser for help on using the repository browser.