-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathread.g
83 lines (77 loc) · 2.88 KB
/
read.g
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#############################################################################
##
#W read.g Laurent Bartholdi
##
#Y Copyright (C) 2006, Laurent Bartholdi
##
#############################################################################
##
## This file reads the implementations, and in principle could be reloaded
## during a GAP session.
#############################################################################
InstallMethod( IsSingleValued,
"map from whole fp group or free group, given on std. gens: test relators",
[IsFromFpGroupStdGensGeneralMappingByImages], SUM_FLAGS,
function(hom)
local s,sg,o,gi;
s:=Source(hom);
if not IsWholeFamily(s) then
TryNextMethod();
fi;
if IsFreeGroup(s) then
return true;
fi;
sg:=FreeGeneratorsOfFpGroup(s){hom!.genpositions};
o:=One(Range(hom));
gi:=MappingGeneratorsImages(hom)[2];
return ForAll(RelatorsOfFpGroup(s),i->MappedWord(i,sg,gi)=o);
end);
#############################################################################
##
#R Read the install files.
##
ReadPackage("img", "gap/helpers.gi");
ReadPackage("img", "gap/machine.gi");
ReadPackage("img", "gap/sphere.gi");
ReadPackage("img", "gap/complex.gi");
ReadPackage("img", "gap/rsserver.g");
ReadPackage("img", "gap/p1.gi");
ReadPackage("img", "gap/p1_ieee754.gi");
if @.dll then
SetP1Points(PMCOMPLEX);
elif IsPackageMarkedForLoading("float","") then
if IsBound(MPC) then
SetP1Points(MPC,100);
elif IsBound(CXSC) then
SetP1Points(CXSC);
else
Info(InfoPackageLoading, 1, "You installed the Float package but compiled neither the Float nor the IMG DLL. That's probably not what you wanted. I'll disable the P1Points code.");
@.ro := 1.0_l; # minimal defaults to shut up warnings -- won't be usable.
@.o := NewFloat(IsPMComplex,1);
@.reps := IEEE754FLOAT.constants.EPSILON;
fi;
else
Info(InfoPackageLoading, 2, "You didn't install the Float package, and didn't compile the IMG DLL. I'll disable the P1Points code.");
@.ro := 1.0_l; # minimal defaults to shut up warnings -- won't be usable.
@.o := NewFloat(IsPMComplex,1);
@.reps := IEEE754FLOAT.constants.EPSILON;
fi;
ReadPackage("img", "gap/triangulations.gi");
ReadPackage("img", "gap/spider.gi");
ReadPackage("img", "gap/markedsphere.gi");
ReadPackage("img", "gap/hurwitz.gi");
ReadPackage("img", "gap/thurston.gi");
ReadPackage("img", "gap/examples.gi");
#############################################################################
while not IsEmpty(POSTHOOK@img) do Remove(POSTHOOK@img)(); od;
Unbind(POSTHOOK@img);
if IsBound(IO_Pickle) then
ReadPackage("img","gap/pickle.g");
else
if not IsBound(IO_PkgThingsToRead) then
IO_PkgThingsToRead := [];
fi;
Add(IO_PkgThingsToRead, ["img","gap/pickle.g"]);
fi;
MAKEP1EPS@();
#E read.g . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ends here