Skip to content

Commit 5bc6a73

Browse files
committed
d&i SetLabelsAsLaTeXStrings for quivers residing in Julia
1 parent db76551 commit 5bc6a73

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

gap/Julia.gd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ DeclareOperation( "LeftQuiver",
3434
DeclareOperation( "LeftQuiver",
3535
[ IsObject, IsJuliaObject, IsJuliaObject, IsJuliaObject, IsJuliaObject ] );
3636

37+
DeclareOperation( "SetLabelsAsLaTeXStrings",
38+
[ IsObject, IsJuliaObject, IsJuliaObject ] );
39+
40+
DeclareOperation( "SetLabelsAsLaTeXStrings",
41+
[ IsObject, IsJuliaObject ] );
42+
3743
DeclareOperation( "QuiverRowsObject",
3844
[ IsJuliaObject, IsQuiverRowsCategory ] );
3945

gap/Julia.gi

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,30 @@ InstallMethod( LeftQuiver,
108108

109109
end );
110110

111+
##
112+
InstallMethod( SetLabelsAsLaTeXStrings,
113+
[ IsQuiver, IsJuliaObject, IsJuliaObject ],
114+
115+
function( q, vertices, arrows )
116+
117+
SetLabelsAsLaTeXStrings( q, ConvertJuliaToGAP( vertices ), ConvertJuliaToGAP( arrows ) );
118+
119+
end );
120+
121+
##
122+
InstallMethod( SetLabelsAsLaTeXStrings,
123+
[ IsQuiver, IsJuliaObject ],
124+
125+
function( q, arrows )
126+
127+
SetLabelsAsLaTeXStrings( q, ConvertJuliaToGAP( arrows ) );
128+
129+
end );
130+
111131
## does not work
112132
InstallOtherMethod( \/,
113133
[ IsPathAlgebra, IsJuliaObject ],
114-
134+
115135
function( A, relations )
116136

117137
return A / JuliaToGAP( IsList, relations );

0 commit comments

Comments
 (0)