source: git/factory/NTLconvert.h @ b78a13

spielwiese
Last change on this file since b78a13 was ee668e, checked in by Jan Engelhardt <jengelh@…>, 12 years ago
factory/build: restore out-of-tree build support When attempting an OOT build, it fails to find <factory/cplusplus.h>, because cplusplus.h is always (even in in-tree builds) produced in "${builddir}", and not "${top_srcdir}/../factory". Furthermore, one must not rely on the basename of ${top_srcdir}, and going above ${top_srcdir} is undefined and may lead to spurious build failures. (Consider a hypothetical chroot on ${top_srcdir}). Therefore, create a directory include/factory and use -Iinclude such that <factory/*> yields a buildable state, move all exported header files there. Previous OOT build log: 17:22 seven:../factory/obj > make CXX cplusplus.o CXXLD cplusplus ./cplusplus > ./cplusplus.h ../bin/makeheader ../factory.template factory.h ../bin/makeheader ../factoryconf.template factoryconf.h YACC readcf.cc make all-am make[1]: Entering directory `/home/jengelh/obs/zu/home/jengelh/science/singsource/factory/obj' CXX libfactory_a-algext.o CXX libfactory_a-canonicalform.o In file included from ../cf_factory.h:12:0, from ../canonicalform.cc:7: ../../factory/cf_gmp.h:14:33: fatal error: factory/cplusplus.h: Ingen slik fil eller filkatalog compilation terminated. make[1]: *** [libfactory_a-canonicalform.o] Error 1 make[1]: Leaving directory `/home/jengelh/obs/zu/home/jengelh/science/singsource/factory/obj' make: *** [all] Error 2
  • 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#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
48NTL_CLIENT
49#endif
50
51
52
53
54#include "int_int.h"
55#include "cf_assert.h"
56
57
58ZZ_pX convertFacCF2NTLZZpX(CanonicalForm f);
59zz_pX convertFacCF2NTLzzpX(CanonicalForm f);
60GF2X convertFacCF2NTLGF2X(CanonicalForm f);
61CanonicalForm convertNTLZZpX2CF(ZZ_pX poly,Variable x);
62CanonicalForm convertNTLzzpX2CF(zz_pX poly,Variable x);
63CanonicalForm convertNTLGF2X2CF(GF2X poly,Variable x);
64CanonicalForm convertNTLZZX2CF(ZZX polynom,Variable x);
65CFFList convertNTLvec_pair_ZZpX_long2FacCFFList(vec_pair_ZZ_pX_long e,ZZ_p multi,Variable x);
66CFFList convertNTLvec_pair_zzpX_long2FacCFFList(vec_pair_zz_pX_long e,zz_p multi,Variable x);
67
68CFFList convertNTLvec_pair_GF2X_long2FacCFFList(vec_pair_GF2X_long e,GF2 multi,Variable x);
69CanonicalForm convertZZ2CF(ZZ coefficient);
70ZZ convertFacCF2NTLZZ(const CanonicalForm f);
71ZZX convertFacCF2NTLZZX(CanonicalForm f);
72CFFList convertNTLvec_pair_ZZX_long2FacCFFList(vec_pair_ZZX_long e,ZZ multi,Variable x);
73CanonicalForm convertNTLZZpE2CF(ZZ_pE coefficient,Variable x);
74CFFList convertNTLvec_pair_ZZpEX_long2FacCFFList(vec_pair_ZZ_pEX_long e,ZZ_pE multi,Variable x,Variable alpha);
75CanonicalForm convertNTLGF2E2CF(GF2E coefficient,Variable x);
76CFFList convertNTLvec_pair_GF2EX_long2FacCFFList(vec_pair_GF2EX_long e,GF2E multi,Variable x,Variable alpha);
77GF2EX convertFacCF2NTLGF2EX(CanonicalForm f,GF2X mipo);
78ZZ_pEX convertFacCF2NTLZZ_pEX(CanonicalForm f,ZZ_pX mipo);
79zz_pEX convertFacCF2NTLzz_pEX(CanonicalForm f,zz_pX mipo);
80CanonicalForm convertNTLzzpE2CF(zz_pE f, Variable x);
81CFFList convertNTLvec_pair_zzpEX_long2FacCFFList(vec_pair_zz_pEX_long e,zz_pE multi,Variable x,Variable alpha);
82CanonicalForm convertNTLzz_pEX2CF(zz_pEX f, Variable x, Variable alpha);
83
84mat_ZZ* convertFacCFMatrix2NTLmat_ZZ(CFMatrix &m);
85CFMatrix* convertNTLmat_ZZ2FacCFMatrix(mat_ZZ &m);
86mat_zz_p* convertFacCFMatrix2NTLmat_zz_p(CFMatrix &m);
87CFMatrix* convertNTLmat_zz_p2FacCFMatrix(mat_zz_p &m);
88mat_zz_pE* convertFacCFMatrix2NTLmat_zz_pE(CFMatrix &m);
89CFMatrix* convertNTLmat_zz_pE2FacCFMatrix(mat_zz_pE &m, Variable alpha);
90
91extern long fac_NTL_char;
92#endif
93#endif
Note: See TracBrowser for help on using the repository browser.