source: git/factory/ftmpl_inst.cc @ 1101a8

spielwiese
Last change on this file since 1101a8 was 9af5e1f, checked in by Martin Lee <martinlee84@…>, 11 years ago
chg: instantiate more templates for NTL 6.0.0 Conflicts: factory/ftmpl_inst.cc
  • Property mode set to 100644
File size: 5.5 KB
Line 
1/* emacs edit mode for this file is -*- C++ -*- */
2
3//{{{ docu
4//
5// ftmpl_inst.cc - Factory's template instantiations.
6//
7// For a detailed description how to instantiate Factory's
8// template classes and functions and how to add new
9// instantiations see the `README' file.
10//
11//}}}
12
13#ifdef HAVE_CONFIG_H
14#include "config.h"
15#endif /* HAVE_CONFIG_H */
16
17// #include <factory/factoryconf.h>
18// #include "factory.h"
19#include "cf_iter.h"
20#include "canonicalform.h"
21#include "cf_assert.h"
22#include "cf_reval.h"
23#include "cf_map.h"
24
25
26#include "templates/ftmpl_array.cc"
27#include "templates/ftmpl_afactor.cc"
28#include "templates/ftmpl_factor.cc"
29#include "templates/ftmpl_list.cc"
30#include "templates/ftmpl_functions.h"
31#include "templates/ftmpl_matrix.cc"
32
33
34//{{{ explicit template class instantiations
35template class Factor<CanonicalForm>;
36template class List<CFFactor>;
37template class ListItem<CFFactor>;
38template class ListIterator<CFFactor>;
39template class AFactor<CanonicalForm>;
40template class List<CFAFactor>;
41template class ListItem<CFAFactor>;
42template class ListIterator<CFAFactor>;
43template class List<CanonicalForm>;
44template class ListItem<CanonicalForm>;
45template class ListIterator<CanonicalForm>;
46template class Array<CanonicalForm>;
47template class List<MapPair>;
48template class ListItem<MapPair>;
49template class ListIterator<MapPair>;
50template class Matrix<CanonicalForm>;
51template class SubMatrix<CanonicalForm>;
52template class Array<REvaluation>;
53// libfac:
54template class Array<int>;
55template class Array<Variable>;
56template class List<Variable>;
57template class ListItem<Variable>;
58template class ListIterator<Variable> ;
59template class List<int>;
60template class ListItem<int>;
61template class ListIterator<int>;
62template class List< List<int> >;
63template class ListItem< List<int> >;
64template class ListIterator< List<int> >;
65template class List< List<CanonicalForm> >;
66template class ListItem< List<CanonicalForm> >;
67template class ListIterator< List<CanonicalForm> >;
68
69template List<Variable> Union ( const List<Variable>&, const List<Variable>& );
70template List<Variable> Difference ( const List<Variable>&, const List<Variable>& );
71
72// NTL 6
73#ifdef HAVE_NTL
74#include<NTL/version.h>
75#if NTL_MAJOR_VERSION == 6
76
77#include<NTL/tools.h>
78#include<NTL/lzz_pE.h>
79#include<NTL/lzz_pEX.h>
80#include<NTL/lzz_p.h>
81#include<NTL/vector.h>
82#include<NTL/pair.h>
83#include<NTL/GF2X.h>
84#include<NTL/GF2EX.h>
85#include<NTL/ZZ.h>
86#include<NTL/ZZX.h>
87#include<NTL/ZZ_pX.h>
88#include<NTL/vector.h>
89#ifdef NTL_CLIENT               // in <NTL/tools.h>: using of name space NTL
90NTL_CLIENT
91#endif
92template void BlockDestroy<zz_pE> (zz_pE*, long);
93template void BlockConstruct<zz_pE> (zz_pE*, long);
94template void BlockDestroy<Pair<zz_pEX, long> > (Pair<zz_pEX, long>*, long);
95template void BlockDestroy<Pair<GF2EX, long> > (Pair<GF2EX, long>*, long);
96template void BlockDestroy<Pair<ZZX, long> > (Pair<ZZX, long>*, long);
97template void BlockDestroy<Pair<ZZ_pX, long> > (Pair<ZZ_pX, long>*, long);
98template void BlockDestroy<Pair<GF2X, long> > (Pair<GF2X, long>*, long);
99template void BlockDestroy<Vec<zz_pE> > (Vec<zz_pE>*, long);
100template class Vec<zz_p>;
101template class Vec<Vec<zz_p> >;
102template class Vec<zz_pE>;
103template class Vec<ZZ>;
104template class Vec<Vec<ZZ> >;
105template class Mat<zz_p>;
106template class Mat<zz_pE>;
107template class Mat<ZZ>;
108template class Vec<Pair<zz_pEX, long> >;
109template class Vec<Pair<GF2EX, long> >;
110template class Vec<Pair<ZZX, long> >;
111template class Vec<Pair<ZZ_pX, long> >;
112template class Vec<Pair<GF2X, long> >;
113template class Vec<Vec<zz_pE> >;
114template void swap<zz_pE>(Vec<zz_pE>&, Vec<zz_pE>&);
115template long operator==<zz_p>(Vec<zz_p> const&, Vec<zz_p> const&);
116#endif
117#endif
118
119//}}}
120
121//{{{ explicit template function instantiations
122#ifndef NOSTREAMIO
123template OSTREAM & operator << ( OSTREAM &, const List<CanonicalForm> & );
124template OSTREAM & operator << ( OSTREAM &, const List<CFFactor> & );
125template OSTREAM & operator << ( OSTREAM &, const List<MapPair> & );
126template OSTREAM & operator << ( OSTREAM &, const Array<CanonicalForm> & );
127template OSTREAM & operator << ( OSTREAM &, const Factor<CanonicalForm> & );
128template OSTREAM & operator << ( OSTREAM &, const Matrix<CanonicalForm> & );
129template OSTREAM & operator << ( OSTREAM &, const Array<REvaluation> & );
130//template OSTREAM & operator << ( OSTREAM &, const AFactor<CanonicalForm> & );
131#endif /* NOSTREAMIO */
132
133template int operator == ( const Factor<CanonicalForm> &, const Factor<CanonicalForm> & );
134template int operator == ( const AFactor<CanonicalForm> &, const AFactor<CanonicalForm> & );
135
136template List<CFFactor> Union ( const List<CFFactor> &, const List<CFFactor> & );
137template List<CFAFactor> Union ( const List<CFAFactor> &, const List<CFAFactor> & );
138
139#if ! defined(WINNT) || defined(__GNUC__)
140template CanonicalForm tmax ( const CanonicalForm &, const CanonicalForm & );
141template CanonicalForm tmin ( const CanonicalForm &, const CanonicalForm & );
142
143template Variable tmax ( const Variable &, const Variable & );
144template Variable tmin ( const Variable &, const Variable & );
145
146template int tmax ( const int &, const int & );
147template int tmin ( const int &, const int & );
148template int tabs ( const int & );
149#endif
150//}}}
151
152//
153template List<CanonicalForm> Union ( const List<CanonicalForm> &, const List<CanonicalForm> & );
154template List<CanonicalForm> Difference ( const List<CanonicalForm> &, const List<CanonicalForm> & );
155template CanonicalForm prod ( const List<CanonicalForm> & );
156template bool find ( const List<CanonicalForm> &, const CanonicalForm&);
157// place here your own template stuff, not yet instantiated by factory
158//
Note: See TracBrowser for help on using the repository browser.