source: git/factory/ftmpl_inst.cc @ b52d27

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