My Project
Loading...
Searching...
No Matches
NTLconvert.h
Go to the documentation of this file.
1/**
2 * @file NTLconvert.h
3 *
4 * Conversion to and from NTL
5**/
6
7#ifndef INCL_NTLCONVERT_H
8#define INCL_NTLCONVERT_H
9
10#ifdef HAVE_NTL
11
12#include "cf_defs.h"
13#include "canonicalform.h"
14#include "cf_iter.h"
15#include "fac_sqrfree.h"
16#include "cf_algorithm.h"
17
18#include <NTL/config.h>
19
20#ifdef NTL_STD_CXX
21#ifdef NOSTREAMIO
22# ifdef HAVE_IOSTREAM
23# include <iostream>
24# define OSTREAM std::ostream
25# define ISTREAM std::istream
26# elif defined(HAVE_IOSTREAM_H)
27# include <iostream.h>
28# define OSTREAM ostream
29# define ISTREAM istream
30# endif
31#endif /* ! NOSTREAMIO */
32#endif
33
34
35#include <NTL/ZZXFactoring.h>
36#include <NTL/ZZ_pXFactoring.h>
37#include <NTL/lzz_pXFactoring.h>
38#include <NTL/GF2XFactoring.h>
39#include <NTL/ZZ_pEXFactoring.h>
40#include <NTL/lzz_pEXFactoring.h>
41#include <NTL/GF2EXFactoring.h>
42#include <NTL/mat_ZZ.h>
43#include <NTL/mat_lzz_p.h>
44#include <NTL/mat_lzz_pE.h>
45
46#ifdef NTL_CLIENT // in <NTL/tools.h>: using of name space NTL
47NTL_CLIENT
48#endif
49
50
51
52
53#include "int_int.h"
54#include "cf_assert.h"
55
56
60CanonicalForm convertNTLZZpX2CF(const ZZ_pX & poly,const Variable & x);
61CanonicalForm convertNTLzzpX2CF(const zz_pX & poly,const Variable & x);
62CanonicalForm convertNTLGF2X2CF(const GF2X & poly,const Variable & x);
63CanonicalForm convertNTLZZX2CF(const ZZX & polynom,const Variable & x);
64CFFList convertNTLvec_pair_ZZpX_long2FacCFFList(const vec_pair_ZZ_pX_long& e,const ZZ_p & cont,const Variable & x);
65CFFList convertNTLvec_pair_zzpX_long2FacCFFList(const vec_pair_zz_pX_long& e,const zz_p cont,const Variable & x);
66
67CFFList convertNTLvec_pair_GF2X_long2FacCFFList(const vec_pair_GF2X_long& e,const GF2 cont,const Variable & x);
68CanonicalForm convertZZ2CF(const ZZ & coefficient);
71CFFList convertNTLvec_pair_ZZX_long2FacCFFList(const vec_pair_ZZX_long& e,const ZZ & cont,const Variable & x);
72CanonicalForm convertNTLZZpE2CF(const ZZ_pE & coefficient,const Variable & x);
73CFFList convertNTLvec_pair_ZZpEX_long2FacCFFList(const vec_pair_ZZ_pEX_long & e,const ZZ_pE & cont,const Variable & x,const Variable & alpha);
74CanonicalForm convertNTLGF2E2CF(const GF2E & coefficient,const Variable & x);
75CFFList convertNTLvec_pair_GF2EX_long2FacCFFList(const vec_pair_GF2EX_long& e,const GF2E & cont,const Variable & x,const Variable & alpha);
76GF2EX convertFacCF2NTLGF2EX(const CanonicalForm & f,const GF2X & mipo);
77ZZ_pEX convertFacCF2NTLZZ_pEX(const CanonicalForm & f,const ZZ_pX & mipo);
78zz_pEX convertFacCF2NTLzz_pEX(const CanonicalForm & f,const zz_pX & mipo);
79CanonicalForm convertNTLzzpE2CF(const zz_pE & f, const Variable & x);
80CFFList convertNTLvec_pair_zzpEX_long2FacCFFList(const vec_pair_zz_pEX_long & e,const zz_pE & cont,const Variable & x,const Variable & alpha);
81CanonicalForm convertNTLzz_pEX2CF(const zz_pEX & f, const Variable & x, const Variable & alpha);
82CanonicalForm convertNTLZZ_pEX2CF(const ZZ_pEX & f, const Variable & x, const Variable & alpha);
83
89CFMatrix* convertNTLmat_zz_pE2FacCFMatrix(const mat_zz_pE &m, const Variable & alpha);
90
92#endif
93#endif
CFMatrix * convertNTLmat_zz_p2FacCFMatrix(const mat_zz_p &m)
Definition: NTLconvert.cc:1183
CanonicalForm convertNTLZZpE2CF(const ZZ_pE &coefficient, const Variable &x)
NAME: convertNTLZZpX2CF.
Definition: NTLconvert.cc:795
CanonicalForm convertNTLGF2E2CF(const GF2E &coefficient, const Variable &x)
NAME: convertNTLGF2E2CF.
Definition: NTLconvert.cc:932
ZZX convertFacCF2NTLZZX(const CanonicalForm &f)
Definition: NTLconvert.cc:691
zz_pEX convertFacCF2NTLzz_pEX(const CanonicalForm &f, const zz_pX &mipo)
Definition: NTLconvert.cc:1064
CFMatrix * convertNTLmat_zz_pE2FacCFMatrix(const mat_zz_pE &m, const Variable &alpha)
Definition: NTLconvert.cc:1212
CFFList convertNTLvec_pair_zzpEX_long2FacCFFList(const vec_pair_zz_pEX_long &e, const zz_pE &cont, const Variable &x, const Variable &alpha)
Definition: NTLconvert.cc:870
CFFList convertNTLvec_pair_GF2EX_long2FacCFFList(const vec_pair_GF2EX_long &e, const GF2E &cont, const Variable &x, const Variable &alpha)
NAME: convertNTLvec_pair_GF2EX_long2FacCFFList.
Definition: NTLconvert.cc:959
CanonicalForm convertNTLzz_pEX2CF(const zz_pEX &f, const Variable &x, const Variable &alpha)
Definition: NTLconvert.cc:1092
ZZ_pEX convertFacCF2NTLZZ_pEX(const CanonicalForm &f, const ZZ_pX &mipo)
CanonicalForm in Z_p(a)[X] to NTL ZZ_pEX.
Definition: NTLconvert.cc:1037
CanonicalForm convertNTLzzpX2CF(const zz_pX &poly, const Variable &x)
Definition: NTLconvert.cc:255
CFFList convertNTLvec_pair_zzpX_long2FacCFFList(const vec_pair_zz_pX_long &e, const zz_p cont, const Variable &x)
Definition: NTLconvert.cc:399
mat_zz_pE * convertFacCFMatrix2NTLmat_zz_pE(const CFMatrix &m)
Definition: NTLconvert.cc:1196
GF2EX convertFacCF2NTLGF2EX(const CanonicalForm &f, const GF2X &mipo)
CanonicalForm in Z_2(a)[X] to NTL GF2EX.
Definition: NTLconvert.cc:1007
CanonicalForm convertNTLZZpX2CF(const ZZ_pX &poly, const Variable &x)
NAME: convertNTLZZpX2CF.
Definition: NTLconvert.cc:250
CanonicalForm convertNTLzzpE2CF(const zz_pE &f, const Variable &x)
Definition: NTLconvert.cc:799
EXTERN_VAR long fac_NTL_char
Definition: NTLconvert.h:91
CanonicalForm convertNTLZZX2CF(const ZZX &polynom, const Variable &x)
Definition: NTLconvert.cc:285
CFFList convertNTLvec_pair_ZZpEX_long2FacCFFList(const vec_pair_ZZ_pEX_long &e, const ZZ_pE &cont, const Variable &x, const Variable &alpha)
NAME: convertNTLvec_pair_ZZpEX_long2FacCFFList.
Definition: NTLconvert.cc:825
CanonicalForm convertNTLZZ_pEX2CF(const ZZ_pEX &f, const Variable &x, const Variable &alpha)
Definition: NTLconvert.cc:1115
zz_pX convertFacCF2NTLzzpX(const CanonicalForm &f)
Definition: NTLconvert.cc:105
ZZ_pX convertFacCF2NTLZZpX(const CanonicalForm &f)
NAME: convertFacCF2NTLZZpX.
Definition: NTLconvert.cc:64
CanonicalForm convertZZ2CF(const ZZ &coefficient)
NAME: convertZZ2CF.
Definition: NTLconvert.cc:495
mat_ZZ * convertFacCFMatrix2NTLmat_ZZ(const CFMatrix &m)
Definition: NTLconvert.cc:1138
CFFList convertNTLvec_pair_ZZpX_long2FacCFFList(const vec_pair_ZZ_pX_long &e, const ZZ_p &cont, const Variable &x)
NAME: convertNTLvec_pair_ZZpX_long2FacCFFList.
Definition: NTLconvert.cc:374
mat_zz_p * convertFacCFMatrix2NTLmat_zz_p(const CFMatrix &m)
Definition: NTLconvert.cc:1167
CFMatrix * convertNTLmat_ZZ2FacCFMatrix(const mat_ZZ &m)
Definition: NTLconvert.cc:1153
GF2X convertFacCF2NTLGF2X(const CanonicalForm &f)
NAME: convertFacCF2NTLGF2X.
Definition: NTLconvert.cc:184
ZZ convertFacCF2NTLZZ(const CanonicalForm &f)
NAME: convertFacCF2NTLZZX.
Definition: NTLconvert.cc:670
CanonicalForm convertNTLGF2X2CF(const GF2X &poly, const Variable &x)
NAME: convertNTLGF2X2CF.
Definition: NTLconvert.cc:322
CFFList convertNTLvec_pair_GF2X_long2FacCFFList(const vec_pair_GF2X_long &e, const GF2 cont, const Variable &x)
NAME: convertNTLvec_pair_GF2X_long2FacCFFList.
Definition: NTLconvert.cc:446
CFFList convertNTLvec_pair_ZZX_long2FacCFFList(const vec_pair_ZZX_long &e, const ZZ &cont, const Variable &x)
NAME: convertNTLvec_pair_ZZX_long2FacCFFList.
Definition: NTLconvert.cc:753
Header for factory's main class CanonicalForm.
int m
Definition: cfEzgcd.cc:128
Variable x
Definition: cfModGcd.cc:4082
declarations of higher level algorithms.
assertions for Factory
factory switches.
Iterators for CanonicalForm's.
FILE * f
Definition: checklibs.c:9
factory's main class
Definition: canonicalform.h:86
factory's class for variables
Definition: variable.h:33
Variable alpha
Definition: facAbsBiFact.cc:51
CanonicalForm mipo
Definition: facAlgExt.cc:57
squarefree part and factorization over Q, Q(a)
#define EXTERN_VAR
Definition: globaldefs.h:6
Factory's internal integers.