regina 7.3.1.1__cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of regina might be problematic. Click here for more details.
- regina/__init__.py +203 -0
- regina/engine.cpython-311-aarch64-linux-gnu.so +0 -0
- regina/plainCompleter.py +221 -0
- regina/pyCensus/__init__.py +14 -0
- regina/pyCensus/christy-knots-links.tdb +0 -0
- regina/pyCensus/closed-hyp-census-full.tdb +0 -0
- regina/pyCensus/closed-nor-census-11.tdb +0 -0
- regina/pyCensus/closed-or-census-11.tdb +0 -0
- regina/pyCensus/cusped-hyp-nor-census-9.tdb +0 -0
- regina/pyCensus/cusped-hyp-or-census-9.tdb +0 -0
- regina/sageRegina/__init__.py +2 -0
- regina/sageRegina/config.py +9 -0
- regina/sageRegina/test.py +132 -0
- regina/sageRegina/testsuite/CMakeLists.txt +60 -0
- regina/sageRegina/testsuite/O2_1.rga +15 -0
- regina/sageRegina/testsuite/O2_1.tri +28 -0
- regina/sageRegina/testsuite/README.txt +20 -0
- regina/sageRegina/testsuite/alltypes.out +1551 -0
- regina/sageRegina/testsuite/alltypes.test +88 -0
- regina/sageRegina/testsuite/angles.out +102 -0
- regina/sageRegina/testsuite/angles.test +72 -0
- regina/sageRegina/testsuite/basic_callback.out +124 -0
- regina/sageRegina/testsuite/basic_sub.out +7 -0
- regina/sageRegina/testsuite/bool.out +6 -0
- regina/sageRegina/testsuite/bool.test +64 -0
- regina/sageRegina/testsuite/bytes.out +17 -0
- regina/sageRegina/testsuite/bytes.test +78 -0
- regina/sageRegina/testsuite/callbacks.out +515 -0
- regina/sageRegina/testsuite/callbacks.test +281 -0
- regina/sageRegina/testsuite/census.out +120 -0
- regina/sageRegina/testsuite/census.test +157 -0
- regina/sageRegina/testsuite/clone.out +18 -0
- regina/sageRegina/testsuite/clone.test +101 -0
- regina/sageRegina/testsuite/constructors.out +14 -0
- regina/sageRegina/testsuite/constructors.test +97 -0
- regina/sageRegina/testsuite/cube.orb +87 -0
- regina/sageRegina/testsuite/discs.out +3 -0
- regina/sageRegina/testsuite/discs.test +40 -0
- regina/sageRegina/testsuite/docstrings.filter +19 -0
- regina/sageRegina/testsuite/docstrings.out +808 -0
- regina/sageRegina/testsuite/docstrings.out.v3 +808 -0
- regina/sageRegina/testsuite/docstrings.test +57 -0
- regina/sageRegina/testsuite/dodec.orb +309 -0
- regina/sageRegina/testsuite/embeddings.out +23 -0
- regina/sageRegina/testsuite/embeddings.test +89 -0
- regina/sageRegina/testsuite/enumerate.out +62 -0
- regina/sageRegina/testsuite/enumerate.test +82 -0
- regina/sageRegina/testsuite/equality.out +112 -0
- regina/sageRegina/testsuite/equality.test +310 -0
- regina/sageRegina/testsuite/euler.out +15 -0
- regina/sageRegina/testsuite/euler.test +95 -0
- regina/sageRegina/testsuite/exception.out +7 -0
- regina/sageRegina/testsuite/exception.test +100 -0
- regina/sageRegina/testsuite/facenumbering.out +546 -0
- regina/sageRegina/testsuite/facenumbering.test +74 -0
- regina/sageRegina/testsuite/faces.out +40 -0
- regina/sageRegina/testsuite/faces.test +72 -0
- regina/sageRegina/testsuite/file.out +1229 -0
- regina/sageRegina/testsuite/file.test +70 -0
- regina/sageRegina/testsuite/file1.rga +0 -0
- regina/sageRegina/testsuite/file2.rga +0 -0
- regina/sageRegina/testsuite/file3.rga +119 -0
- regina/sageRegina/testsuite/flype.out +37 -0
- regina/sageRegina/testsuite/flype.test +50 -0
- regina/sageRegina/testsuite/generic.out +116 -0
- regina/sageRegina/testsuite/generic.test +76 -0
- regina/sageRegina/testsuite/groups.out +70 -0
- regina/sageRegina/testsuite/groups.test +117 -0
- regina/sageRegina/testsuite/hypersurfaces.out +681 -0
- regina/sageRegina/testsuite/hypersurfaces.test +90 -0
- regina/sageRegina/testsuite/i18n-latin1.rga +8 -0
- regina/sageRegina/testsuite/i18n-utf8.rga +8 -0
- regina/sageRegina/testsuite/i18n.out +6 -0
- regina/sageRegina/testsuite/i18n.test +91 -0
- regina/sageRegina/testsuite/id.out +2 -0
- regina/sageRegina/testsuite/id.test +47 -0
- regina/sageRegina/testsuite/index.out +2 -0
- regina/sageRegina/testsuite/index.test +43 -0
- regina/sageRegina/testsuite/integer.out +74 -0
- regina/sageRegina/testsuite/integer.test +56 -0
- regina/sageRegina/testsuite/italian.orb +90 -0
- regina/sageRegina/testsuite/iterators.out +118 -0
- regina/sageRegina/testsuite/iterators.test +128 -0
- regina/sageRegina/testsuite/knotted-Y.orb +47 -0
- regina/sageRegina/testsuite/listener.out +43 -0
- regina/sageRegina/testsuite/listener.test +101 -0
- regina/sageRegina/testsuite/listview.out +416 -0
- regina/sageRegina/testsuite/listview.test +253 -0
- regina/sageRegina/testsuite/lookup.out +13 -0
- regina/sageRegina/testsuite/lookup.test +44 -0
- regina/sageRegina/testsuite/memory1.out +62 -0
- regina/sageRegina/testsuite/memory1.test +154 -0
- regina/sageRegina/testsuite/memory2.out +62 -0
- regina/sageRegina/testsuite/memory2.test +124 -0
- regina/sageRegina/testsuite/memory3.out +92 -0
- regina/sageRegina/testsuite/memory3.test +216 -0
- regina/sageRegina/testsuite/misc.out +7 -0
- regina/sageRegina/testsuite/misc.test +56 -0
- regina/sageRegina/testsuite/operators.out +129 -0
- regina/sageRegina/testsuite/operators.test +61 -0
- regina/sageRegina/testsuite/orb.out +441 -0
- regina/sageRegina/testsuite/orb.test +49 -0
- regina/sageRegina/testsuite/pdf.out +4 -0
- regina/sageRegina/testsuite/pdf.test +49 -0
- regina/sageRegina/testsuite/perm.out +55 -0
- regina/sageRegina/testsuite/perm.test +96 -0
- regina/sageRegina/testsuite/plantri.out +12 -0
- regina/sageRegina/testsuite/plantri.test +60 -0
- regina/sageRegina/testsuite/presentations.out +11 -0
- regina/sageRegina/testsuite/presentations.test +61 -0
- regina/sageRegina/testsuite/refs.out +51 -0
- regina/sageRegina/testsuite/refs.test +128 -0
- regina/sageRegina/testsuite/repr.out +951 -0
- regina/sageRegina/testsuite/repr.out.v3 +951 -0
- regina/sageRegina/testsuite/repr.test +548 -0
- regina/sageRegina/testsuite/safeheldtype_basic.out +17 -0
- regina/sageRegina/testsuite/safeheldtype_basic.test +113 -0
- regina/sageRegina/testsuite/safeheldtype_packet.out +58 -0
- regina/sageRegina/testsuite/safeheldtype_packet.test +181 -0
- regina/sageRegina/testsuite/sample.pdf +0 -0
- regina/sageRegina/testsuite/sets.out +7 -0
- regina/sageRegina/testsuite/sets.test +44 -0
- regina/sageRegina/testsuite/skeleton.out +308 -0
- regina/sageRegina/testsuite/skeleton.test +54 -0
- regina/sageRegina/testsuite/snappea.out +82 -0
- regina/sageRegina/testsuite/snappea.test +107 -0
- regina/sageRegina/testsuite/snapshot.out +15 -0
- regina/sageRegina/testsuite/snapshot.test +78 -0
- regina/sageRegina/testsuite/sort.out +57 -0
- regina/sageRegina/testsuite/sort.test +53 -0
- regina/sageRegina/testsuite/special.out +4 -0
- regina/sageRegina/testsuite/special.test +47 -0
- regina/sageRegina/testsuite/standardtri.out +12101 -0
- regina/sageRegina/testsuite/standardtri.test +455 -0
- regina/sageRegina/testsuite/surfaces.out +2133 -0
- regina/sageRegina/testsuite/surfaces.test +114 -0
- regina/sageRegina/testsuite/swapping.out +25 -0
- regina/sageRegina/testsuite/swapping.test +88 -0
- regina/sageRegina/testsuite/testall.in +176 -0
- regina/sageRegina/testsuite/testbasic.in +279 -0
- regina/sageRegina/testsuite/testcallback.in +150 -0
- regina/sageRegina/testsuite/testsub.in +150 -0
- regina/sageRegina/testsuite/theta_in_solid_torus.orb +65 -0
- regina/sageRegina/testsuite/tightencode.out +40 -0
- regina/sageRegina/testsuite/tightencode.test +108 -0
- regina/sageRegina/testsuite/treedecomp.out +135 -0
- regina/sageRegina/testsuite/treedecomp.test +66 -0
- regina/sageRegina/testsuite/treetraversal.out +52 -0
- regina/sageRegina/testsuite/treetraversal.test +190 -0
- regina/sageRegina/testsuite/trigeneral.out +1251 -0
- regina/sageRegina/testsuite/trigeneral.test +155 -0
- regina/sageRegina/testsuite/utf8.out +42 -0
- regina/sageRegina/testsuite/utf8.test +94 -0
- regina/sageRegina/version.py +5 -0
- regina/sageSetup.py +41 -0
- regina/test.py +6 -0
- regina-7.3.1.1.dist-info/METADATA +109 -0
- regina-7.3.1.1.dist-info/RECORD +163 -0
- regina-7.3.1.1.dist-info/WHEEL +6 -0
- regina-7.3.1.1.dist-info/top_level.txt +4 -0
- regina.libs/libbz2-738ca772.so.1.0.6 +0 -0
- regina.libs/libgmp-6683d5d4.so.10.2.0 +0 -0
- regina.libs/libgmpxx-7c3a5907.so.4.4.0 +0 -0
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
# Regina - A Normal Surface Theory Calculator
|
|
2
|
+
# Python Test Suite Component
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2015-2023, Ben Burton
|
|
5
|
+
# For further details contact Ben Burton (bab@debian.org).
|
|
6
|
+
#
|
|
7
|
+
# Tests the independence and lifespans of engine-generated packets.
|
|
8
|
+
#
|
|
9
|
+
# This file is a single component of Regina's python test suite. To run
|
|
10
|
+
# the python test suite, move to the main python directory in the source
|
|
11
|
+
# tree and run "make check".
|
|
12
|
+
#
|
|
13
|
+
# This program is free software; you can redistribute it and/or
|
|
14
|
+
# modify it under the terms of the GNU General Public License as
|
|
15
|
+
# published by the Free Software Foundation; either version 2 of the
|
|
16
|
+
# License, or (at your option) any later version.
|
|
17
|
+
#
|
|
18
|
+
# As an exception, when this program is distributed through (i) the
|
|
19
|
+
# App Store by Apple Inc.; (ii) the Mac App Store by Apple Inc.; or
|
|
20
|
+
# (iii) Google Play by Google Inc., then that store may impose any
|
|
21
|
+
# digital rights management, device limits and/or redistribution
|
|
22
|
+
# restrictions that are required by its terms of service.
|
|
23
|
+
#
|
|
24
|
+
# This program is distributed in the hope that it will be useful, but
|
|
25
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
26
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
27
|
+
# General Public License for more details.
|
|
28
|
+
#
|
|
29
|
+
# You should have received a copy of the GNU General Public
|
|
30
|
+
# License along with this program; if not, write to the Free
|
|
31
|
+
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
|
|
32
|
+
# MA 02110-1301, USA.
|
|
33
|
+
|
|
34
|
+
class Watcher(PacketListener):
|
|
35
|
+
def __init__(self, packet, label):
|
|
36
|
+
PacketListener.__init__(self)
|
|
37
|
+
packet.setLabel(label)
|
|
38
|
+
packet.listen(self)
|
|
39
|
+
def packetBeingDestroyed(self, packet):
|
|
40
|
+
print('Destroying: ' + packet.label())
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
print('Vertices of triangulation: vertices()')
|
|
44
|
+
print('Step 1')
|
|
45
|
+
t = PacketOfTriangulation2(Example2.sphere()); tw = Watcher(t, 't')
|
|
46
|
+
print('Step 2')
|
|
47
|
+
v = t.vertices() # v keeps t alive
|
|
48
|
+
print('Step 3')
|
|
49
|
+
t = None
|
|
50
|
+
print('Step 4')
|
|
51
|
+
v = None # destroys t
|
|
52
|
+
print('Step 5')
|
|
53
|
+
|
|
54
|
+
print('Vertices of triangulation: edges()')
|
|
55
|
+
print('Step 1')
|
|
56
|
+
t = PacketOfTriangulation3(Example3.sphere()); tw = Watcher(t, 't')
|
|
57
|
+
print('Step 2')
|
|
58
|
+
e = t.edges() # e keeps t alive
|
|
59
|
+
print('Step 3')
|
|
60
|
+
t = None
|
|
61
|
+
print('Step 4')
|
|
62
|
+
e = None # destroys t
|
|
63
|
+
print('Step 5')
|
|
64
|
+
|
|
65
|
+
print('Vertices of triangulation: vertex()')
|
|
66
|
+
print('Step 1')
|
|
67
|
+
t = PacketOfTriangulation4(Example4.sphere()); tw = Watcher(t, 't')
|
|
68
|
+
print('Step 2')
|
|
69
|
+
v = t.vertex(0) # v keeps t alive
|
|
70
|
+
print('Step 3')
|
|
71
|
+
t = None
|
|
72
|
+
print('Step 4')
|
|
73
|
+
v = None # destroys t
|
|
74
|
+
print('Step 5')
|
|
75
|
+
|
|
76
|
+
print('Vertices of triangulation: edge()')
|
|
77
|
+
print('Step 1')
|
|
78
|
+
t = PacketOfTriangulation5(Example5.sphere()); tw = Watcher(t, 't')
|
|
79
|
+
print('Step 2')
|
|
80
|
+
e = t.edge(0) # e keeps t alive
|
|
81
|
+
print('Step 3')
|
|
82
|
+
t = None
|
|
83
|
+
print('Step 4')
|
|
84
|
+
e = None # destroys t
|
|
85
|
+
print('Step 5')
|
|
86
|
+
|
|
87
|
+
print('Vertices of triangulation: faces<0>()')
|
|
88
|
+
print('Step 1')
|
|
89
|
+
t = PacketOfTriangulation5(Example5.sphere()); tw = Watcher(t, 't')
|
|
90
|
+
print('Step 2')
|
|
91
|
+
v = t.faces(0) # v keeps t alive
|
|
92
|
+
print('Step 3')
|
|
93
|
+
t = None
|
|
94
|
+
print('Step 4')
|
|
95
|
+
v = None # destroys t
|
|
96
|
+
print('Step 5')
|
|
97
|
+
|
|
98
|
+
print('Vertices of triangulation: faces<1>()')
|
|
99
|
+
print('Step 1')
|
|
100
|
+
t = PacketOfTriangulation4(Example4.sphere()); tw = Watcher(t, 't')
|
|
101
|
+
print('Step 2')
|
|
102
|
+
e = t.faces(1) # e keeps t alive
|
|
103
|
+
print('Step 3')
|
|
104
|
+
t = None
|
|
105
|
+
print('Step 4')
|
|
106
|
+
e = None # destroys t
|
|
107
|
+
print('Step 5')
|
|
108
|
+
|
|
109
|
+
print('Vertices of triangulation: face<0>()')
|
|
110
|
+
print('Step 1')
|
|
111
|
+
t = PacketOfTriangulation3(Example3.sphere()); tw = Watcher(t, 't')
|
|
112
|
+
print('Step 2')
|
|
113
|
+
v = t.face(0, 0) # v keeps t alive
|
|
114
|
+
print('Step 3')
|
|
115
|
+
t = None
|
|
116
|
+
print('Step 4')
|
|
117
|
+
v = None # destroys t
|
|
118
|
+
print('Step 5')
|
|
119
|
+
|
|
120
|
+
print('Vertices of triangulation: face<1>()')
|
|
121
|
+
print('Step 1')
|
|
122
|
+
t = PacketOfTriangulation2(Example2.sphere()); tw = Watcher(t, 't')
|
|
123
|
+
print('Step 2')
|
|
124
|
+
e = t.face(1, 0) # e keeps t alive
|
|
125
|
+
print('Step 3')
|
|
126
|
+
t = None
|
|
127
|
+
print('Step 4')
|
|
128
|
+
e = None # destroys t
|
|
129
|
+
print('Step 5')
|
|
130
|
+
|
|
131
|
+
print('Vertices of simplex')
|
|
132
|
+
print('Step 1')
|
|
133
|
+
t = PacketOfTriangulation3(Example3.sphere()); tw = Watcher(t, 't')
|
|
134
|
+
print('Step 2')
|
|
135
|
+
s = t.simplex(0) # s keeps t alive
|
|
136
|
+
print('Step 3')
|
|
137
|
+
# None of these keep t alive
|
|
138
|
+
f1 = s.vertex(0)
|
|
139
|
+
f2 = s.edge(0)
|
|
140
|
+
f3 = s.face(0, 0)
|
|
141
|
+
f4 = s.face(1, 0)
|
|
142
|
+
print('Step 4')
|
|
143
|
+
t = None
|
|
144
|
+
print('Step 5')
|
|
145
|
+
s = None # destroys t
|
|
146
|
+
print('Step 6')
|
|
147
|
+
f1 = None; f2 = None; f3 = None; f4 = None
|
|
148
|
+
print('Step 7')
|
|
149
|
+
|
|
150
|
+
print('Vertices of face')
|
|
151
|
+
print('Step 1')
|
|
152
|
+
t = PacketOfTriangulation4(Example4.sphere()); tw = Watcher(t, 't')
|
|
153
|
+
print('Step 2')
|
|
154
|
+
f = t.triangle(0) # f keeps t alive
|
|
155
|
+
print('Step 3')
|
|
156
|
+
# None of these keep t alive
|
|
157
|
+
f1 = f.vertex(0)
|
|
158
|
+
f2 = f.edge(0)
|
|
159
|
+
f3 = f.face(0, 0)
|
|
160
|
+
f4 = f.face(1, 0)
|
|
161
|
+
print('Step 4')
|
|
162
|
+
t = None
|
|
163
|
+
print('Step 5')
|
|
164
|
+
f = None # destroys t
|
|
165
|
+
print('Step 6')
|
|
166
|
+
f1 = None; f2 = None; f3 = None; f4 = None
|
|
167
|
+
print('Step 7')
|
|
168
|
+
|
|
169
|
+
print('Vertices of component')
|
|
170
|
+
print('Step 1')
|
|
171
|
+
t = PacketOfTriangulation2(Example2.sphere()); tw = Watcher(t, 't')
|
|
172
|
+
print('Step 2')
|
|
173
|
+
c = t.component(0) # c keeps t alive
|
|
174
|
+
print('Step 3')
|
|
175
|
+
# None of these keep t alive
|
|
176
|
+
f1 = c.vertices()
|
|
177
|
+
f2 = c.vertex(0)
|
|
178
|
+
f3 = c.edges()
|
|
179
|
+
f4 = c.edge(0)
|
|
180
|
+
f5 = c.faces(0)
|
|
181
|
+
f6 = c.face(0, 0)
|
|
182
|
+
f7 = c.faces(1)
|
|
183
|
+
f8 = c.face(1, 0)
|
|
184
|
+
print('Step 4')
|
|
185
|
+
t = None
|
|
186
|
+
print('Step 5')
|
|
187
|
+
c = None # destroys t
|
|
188
|
+
print('Step 6')
|
|
189
|
+
f1 = None; f2 = None; f3 = None; f4 = None
|
|
190
|
+
f5 = None; f6 = None; f7 = None; f8 = None
|
|
191
|
+
print('Step 7')
|
|
192
|
+
|
|
193
|
+
print('Vertices of boundary component')
|
|
194
|
+
print('Step 1')
|
|
195
|
+
t = PacketOfTriangulation4(Example4.ball()); tw = Watcher(t, 't')
|
|
196
|
+
print('Step 2')
|
|
197
|
+
b = t.boundaryComponent(0) # b keeps t alive
|
|
198
|
+
print('Step 3')
|
|
199
|
+
# None of these keep t alive
|
|
200
|
+
f1 = b.vertices()
|
|
201
|
+
f2 = b.vertex(0)
|
|
202
|
+
f3 = b.edges()
|
|
203
|
+
f4 = b.edge(0)
|
|
204
|
+
f5 = b.faces(0)
|
|
205
|
+
f6 = b.face(0, 0)
|
|
206
|
+
f7 = b.faces(1)
|
|
207
|
+
f8 = b.face(1, 0)
|
|
208
|
+
print('Step 4')
|
|
209
|
+
t = None
|
|
210
|
+
print('Step 5')
|
|
211
|
+
b = None # destroys t
|
|
212
|
+
print('Step 6')
|
|
213
|
+
f1 = None; f2 = None; f3 = None; f4 = None
|
|
214
|
+
f5 = None; f6 = None; f7 = None; f8 = None
|
|
215
|
+
print('Step 7')
|
|
216
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Regina - A Normal Surface Theory Calculator
|
|
2
|
+
# Python Test Suite Component
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2007-2023, Ben Burton
|
|
5
|
+
# For further details contact Ben Burton (bab@debian.org).
|
|
6
|
+
#
|
|
7
|
+
# Provides small miscellaneous tests to ensure that things are up and running.
|
|
8
|
+
#
|
|
9
|
+
# This file is a single component of Regina's python test suite. To run
|
|
10
|
+
# the python test suite, move to the main python directory in the source
|
|
11
|
+
# tree and run "make check".
|
|
12
|
+
#
|
|
13
|
+
# This program is free software; you can redistribute it and/or
|
|
14
|
+
# modify it under the terms of the GNU General Public License as
|
|
15
|
+
# published by the Free Software Foundation; either version 2 of the
|
|
16
|
+
# License, or (at your option) any later version.
|
|
17
|
+
#
|
|
18
|
+
# As an exception, when this program is distributed through (i) the
|
|
19
|
+
# App Store by Apple Inc.; (ii) the Mac App Store by Apple Inc.; or
|
|
20
|
+
# (iii) Google Play by Google Inc., then that store may impose any
|
|
21
|
+
# digital rights management, device limits and/or redistribution
|
|
22
|
+
# restrictions that are required by its terms of service.
|
|
23
|
+
#
|
|
24
|
+
# This program is distributed in the hope that it will be useful, but
|
|
25
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
26
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
27
|
+
# General Public License for more details.
|
|
28
|
+
#
|
|
29
|
+
# You should have received a copy of the GNU General Public
|
|
30
|
+
# License along with this program; if not, write to the Free
|
|
31
|
+
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
|
|
32
|
+
# MA 02110-1301, USA.
|
|
33
|
+
|
|
34
|
+
# The most trivial test: can we talk to the calculation engine at all?
|
|
35
|
+
print(regina.testEngine(3))
|
|
36
|
+
|
|
37
|
+
# Some slightly less trivial tests.
|
|
38
|
+
t = Example3.lens(5, 1)
|
|
39
|
+
print(t.homology())
|
|
40
|
+
|
|
41
|
+
# Does equality work correctly?
|
|
42
|
+
a = Perm4(2,3)
|
|
43
|
+
b = Perm4()
|
|
44
|
+
c = Perm4(2,3)
|
|
45
|
+
print(a == c, a == b, b == c)
|
|
46
|
+
print(a != c, a != b, b != c)
|
|
47
|
+
|
|
48
|
+
t = regina.Example3.poincare()
|
|
49
|
+
a = t.tetrahedron(0)
|
|
50
|
+
b = t.tetrahedron(1)
|
|
51
|
+
c = t.tetrahedron(0)
|
|
52
|
+
print(a == c, a == b, b == c)
|
|
53
|
+
print(a != c, a != b, b != c)
|
|
54
|
+
|
|
55
|
+
# Have we clobbered python's builtin open() function?
|
|
56
|
+
print(open)
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
0 -> 1 (1230), 1 -> 0 (2103)
|
|
2
|
+
Size of the skeleton:
|
|
3
|
+
Tetrahedra: 2
|
|
4
|
+
Triangles: 4
|
|
5
|
+
Edges: 3
|
|
6
|
+
Vertices: 1
|
|
7
|
+
|
|
8
|
+
Tetrahedron gluing:
|
|
9
|
+
Tet | glued to: (012) (013) (023) (123)
|
|
10
|
+
-----+-------------------------------------------------------
|
|
11
|
+
0 | 0 (123) 1 (013) 1 (023) 0 (012)
|
|
12
|
+
1 | 1 (123) 0 (013) 0 (023) 1 (012)
|
|
13
|
+
|
|
14
|
+
Vertices:
|
|
15
|
+
Tet | vertex: 0 1 2 3
|
|
16
|
+
-----+--------------------------
|
|
17
|
+
0 | 0 0 0 0
|
|
18
|
+
1 | 0 0 0 0
|
|
19
|
+
|
|
20
|
+
Edges:
|
|
21
|
+
Tet | edge: 01 02 03 12 13 23
|
|
22
|
+
-----+--------------------------------
|
|
23
|
+
0 | 0 1 2 0 1 0
|
|
24
|
+
1 | 0 1 2 0 1 0
|
|
25
|
+
|
|
26
|
+
Triangles:
|
|
27
|
+
Tet | face: 012 013 023 123
|
|
28
|
+
-----+------------------------
|
|
29
|
+
0 | 0 1 2 0
|
|
30
|
+
1 | 3 1 2 3
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
Size of the skeleton:
|
|
34
|
+
Tetrahedra: 2
|
|
35
|
+
Triangles: 4
|
|
36
|
+
Edges: 3
|
|
37
|
+
Vertices: 1
|
|
38
|
+
|
|
39
|
+
Tetrahedron gluing:
|
|
40
|
+
Tet | glued to: (012) (013) (023) (123)
|
|
41
|
+
-----+-------------------------------------------------------
|
|
42
|
+
0 | 0 (301) 0 (120) 1 (310) 1 (210)
|
|
43
|
+
1 | 0 (321) 0 (320) 1 (312) 1 (230)
|
|
44
|
+
|
|
45
|
+
Vertices:
|
|
46
|
+
Tet | vertex: 0 1 2 3
|
|
47
|
+
-----+--------------------------
|
|
48
|
+
0 | 0 0 0 0
|
|
49
|
+
1 | 0 0 0 0
|
|
50
|
+
|
|
51
|
+
Edges:
|
|
52
|
+
Tet | edge: 01 02 03 12 13 23
|
|
53
|
+
-----+--------------------------------
|
|
54
|
+
0 | 0 1 0 0 1 2
|
|
55
|
+
1 | 2 1 0 0 1 0
|
|
56
|
+
|
|
57
|
+
Triangles:
|
|
58
|
+
Tet | face: 012 013 023 123
|
|
59
|
+
-----+------------------------
|
|
60
|
+
0 | 0 0 1 2
|
|
61
|
+
1 | 2 1 3 3
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
0:3 1:1 1:2 0:0 | 1:3 0:1 0:2 1:0
|
|
65
|
+
1:3 1:2 0:3 0:2 | 1:1 1:0 0:1 0:0
|
|
66
|
+
Size of the skeleton:
|
|
67
|
+
Tetrahedra: 2
|
|
68
|
+
Triangles: 5
|
|
69
|
+
Edges: 4
|
|
70
|
+
Vertices: 1
|
|
71
|
+
|
|
72
|
+
Tetrahedron gluing:
|
|
73
|
+
Tet | glued to: (012) (013) (023) (123)
|
|
74
|
+
-----+-------------------------------------------------------
|
|
75
|
+
0 | boundary boundary 1 (013) 1 (120)
|
|
76
|
+
1 | 0 (312) 0 (023) 1 (312) 1 (230)
|
|
77
|
+
|
|
78
|
+
Vertices:
|
|
79
|
+
Tet | vertex: 0 1 2 3
|
|
80
|
+
-----+--------------------------
|
|
81
|
+
0 | 0 0 0 0
|
|
82
|
+
1 | 0 0 0 0
|
|
83
|
+
|
|
84
|
+
Edges:
|
|
85
|
+
Tet | edge: 01 02 03 12 13 23
|
|
86
|
+
-----+--------------------------------
|
|
87
|
+
0 | 0 1 2 2 1 3
|
|
88
|
+
1 | 1 3 2 2 3 2
|
|
89
|
+
|
|
90
|
+
Triangles:
|
|
91
|
+
Tet | face: 012 013 023 123
|
|
92
|
+
-----+------------------------
|
|
93
|
+
0 | 0 1 2 3
|
|
94
|
+
1 | 3 2 4 4
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
Size of the skeleton:
|
|
98
|
+
Tetrahedra: 2
|
|
99
|
+
Triangles: 5
|
|
100
|
+
Edges: 4
|
|
101
|
+
Vertices: 1
|
|
102
|
+
|
|
103
|
+
Tetrahedron gluing:
|
|
104
|
+
Tet | glued to: (012) (013) (023) (123)
|
|
105
|
+
-----+-------------------------------------------------------
|
|
106
|
+
0 | 1 (320) 0 (302) 0 (130) 1 (310)
|
|
107
|
+
1 | boundary 0 (321) 0 (210) boundary
|
|
108
|
+
|
|
109
|
+
Vertices:
|
|
110
|
+
Tet | vertex: 0 1 2 3
|
|
111
|
+
-----+--------------------------
|
|
112
|
+
0 | 0 0 0 0
|
|
113
|
+
1 | 0 0 0 0
|
|
114
|
+
|
|
115
|
+
Edges:
|
|
116
|
+
Tet | edge: 01 02 03 12 13 23
|
|
117
|
+
-----+--------------------------------
|
|
118
|
+
0 | 0 1 0 2 1 0
|
|
119
|
+
1 | 0 2 1 3 2 0
|
|
120
|
+
|
|
121
|
+
Triangles:
|
|
122
|
+
Tet | face: 012 013 023 123
|
|
123
|
+
-----+------------------------
|
|
124
|
+
0 | 0 1 1 2
|
|
125
|
+
1 | 3 2 0 4
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
1:3 1:2 bdry bdry | 1:1 1:0 0:1 0:0
|
|
129
|
+
1:2 0:2 0:1 1:1 | bdry 0:3 0:0 bdry
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Regina - A Normal Surface Theory Calculator
|
|
2
|
+
# Python Test Suite Component
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2015-2023, Ben Burton
|
|
5
|
+
# For further details contact Ben Burton (bab@debian.org).
|
|
6
|
+
#
|
|
7
|
+
# Tests bindings for various C++ operator overloads.
|
|
8
|
+
#
|
|
9
|
+
# This file is a single component of Regina's python test suite. To run
|
|
10
|
+
# the python test suite, move to the main python directory in the source
|
|
11
|
+
# tree and run "make check".
|
|
12
|
+
#
|
|
13
|
+
# This program is free software; you can redistribute it and/or
|
|
14
|
+
# modify it under the terms of the GNU General Public License as
|
|
15
|
+
# published by the Free Software Foundation; either version 2 of the
|
|
16
|
+
# License, or (at your option) any later version.
|
|
17
|
+
#
|
|
18
|
+
# As an exception, when this program is distributed through (i) the
|
|
19
|
+
# App Store by Apple Inc.; (ii) the Mac App Store by Apple Inc.; or
|
|
20
|
+
# (iii) Google Play by Google Inc., then that store may impose any
|
|
21
|
+
# digital rights management, device limits and/or redistribution
|
|
22
|
+
# restrictions that are required by its terms of service.
|
|
23
|
+
#
|
|
24
|
+
# This program is distributed in the hope that it will be useful, but
|
|
25
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
26
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
27
|
+
# General Public License for more details.
|
|
28
|
+
#
|
|
29
|
+
# You should have received a copy of the GNU General Public
|
|
30
|
+
# License along with this program; if not, write to the Free
|
|
31
|
+
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
|
|
32
|
+
# MA 02110-1301, USA.
|
|
33
|
+
|
|
34
|
+
iso = Isomorphism3(2)
|
|
35
|
+
iso.setSimpImage(0, 1)
|
|
36
|
+
iso.setSimpImage(1, 0)
|
|
37
|
+
iso.setFacetPerm(0, Perm4(1,2,3,0))
|
|
38
|
+
iso.setFacetPerm(1, Perm4(0,2))
|
|
39
|
+
print(iso)
|
|
40
|
+
|
|
41
|
+
tri = Example3.s2xs1()
|
|
42
|
+
p = FacetPairing3(tri)
|
|
43
|
+
|
|
44
|
+
print(tri.detail())
|
|
45
|
+
tri = iso(tri)
|
|
46
|
+
print(tri.detail())
|
|
47
|
+
|
|
48
|
+
print(p)
|
|
49
|
+
p = iso(p)
|
|
50
|
+
print(p)
|
|
51
|
+
|
|
52
|
+
tri = Example3.lst(1,3)
|
|
53
|
+
p = FacetPairing3(tri)
|
|
54
|
+
|
|
55
|
+
print(tri.detail())
|
|
56
|
+
tri = iso(tri)
|
|
57
|
+
print(tri.detail())
|
|
58
|
+
|
|
59
|
+
print(p)
|
|
60
|
+
p = iso(p)
|
|
61
|
+
print(p)
|