Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

563644 views
1
/*
2
* Normaliz
3
* Copyright (C) 2007-2014 Winfried Bruns, Bogdan Ichim, Christof Soeger
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
*
17
* As an exception, when this program is distributed through (i) the App Store
18
* by Apple Inc.; (ii) the Mac App Store by Apple Inc.; or (iii) Google Play
19
* by Google Inc., then that store may impose any digital rights management,
20
* device limits and/or redistribution restrictions that are required by its
21
* terms of service.
22
*/
23
24
#ifdef NMZ_MIC_OFFLOAD
25
#pragma offload_attribute (push, target(mic))
26
#endif
27
28
#include "libnormaliz/libnormaliz.cpp"
29
#include "libnormaliz/integer.cpp"
30
#include "libnormaliz/vector_operations.cpp"
31
#include "libnormaliz/cone_helper.cpp"
32
#include "libnormaliz/matrix.cpp"
33
#include "libnormaliz/simplex.cpp"
34
#include "libnormaliz/list_operations.cpp"
35
#include "libnormaliz/sublattice_representation.cpp"
36
#include "libnormaliz/reduction.cpp"
37
#include "libnormaliz/full_cone.cpp"
38
#include "libnormaliz/cone_dual_mode.cpp"
39
#include "libnormaliz/cone.cpp"
40
41
namespace libnormaliz {
42
43
#ifndef NMZ_MIC_OFFLOAD //offload with long is not supported
44
template class Cone<long>;
45
// template class Matrix<long>;
46
template class Sublattice_Representation<long>;
47
template class Full_Cone<long>;
48
#endif
49
template class Matrix<long>;
50
51
template class Cone<long long>;
52
template class Matrix<long long>;
53
template class Sublattice_Representation<long long>;
54
template class Full_Cone<long long>;
55
56
template class Cone<mpz_class>;
57
template class Matrix<mpz_class>;
58
template class Sublattice_Representation<mpz_class>;
59
template class Full_Cone<mpz_class>;
60
61
template size_t decimal_length<long>(long);
62
template size_t decimal_length<long long int>(long long int);
63
template size_t decimal_length<mpz_class>(mpz_class);
64
65
template long gcd<long>(const long& a, const long& b);
66
template long lcm<long>(const long& a, const long& b);
67
template long permutations<long>(const size_t& a, const size_t& b);
68
template long long gcd<long long>(const long long& a, const long long& b);
69
template long long lcm<long long>(const long long& a, const long long& b);
70
template long long permutations<long long>(const size_t& a, const size_t& b);
71
//template mpz_class gcd<mpz_class>(const mpz_class& a, const mpz_class& b);
72
//template mpz_class lcm<mpz_class>(const mpz_class& a, const mpz_class& b);
73
template mpz_class permutations<mpz_class>(const size_t& a, const size_t& b);
74
75
template ostream& operator<< <long>(ostream& out, const vector<long>& v);
76
template ostream& operator<< <long long>(ostream& out, const vector<long long>& v);
77
template ostream& operator<< <mpz_class>(ostream& out, const vector<mpz_class>& v);
78
79
}
80
81
#ifdef NMZ_MIC_OFFLOAD
82
#pragma offload_attribute (pop)
83
#endif
84
85