Skip to content

Commit

Permalink
Some type stability
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Oct 22, 2024
1 parent 68cdc5d commit dcbd2b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions experimental/LieAlgebras/src/iso_oscar_gap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ function _iso_oscar_gap(LO::AbstractLieAlgebra; set_attributes::Bool=true)
coeffs_iso(zero(coefficient_ring(LO)))
]

LG = GAP.Globals.LieAlgebraByStructureConstants(
codomain(coeffs_iso), GAP.Obj(sc_table_G; recursive=true)
LG = GAPWrap.LieAlgebraByStructureConstants(
codomain(coeffs_iso), GapObj(sc_table_G; recursive=true)
)

f, finv = _iso_oscar_gap_lie_algebra_functions(LO, LG, coeffs_iso)
Expand Down
4 changes: 2 additions & 2 deletions src/GAP/iso_oscar_gap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ function _iso_oscar_gap(FO::QQAbField)
end

"""
Oscar.iso_oscar_gap(R) -> Map{T, GapObj}
Oscar.iso_oscar_gap(R::T) -> Map{T, GapObj}
Return an isomorphism `f` with domain `R`
and `codomain` a GAP object `S`.
Expand Down Expand Up @@ -481,7 +481,7 @@ true
structure is not fully supported in GAP will likely cause overhead
at runtime.
"""
@attr Map function iso_oscar_gap(F)
@attr Map{T, GapObj} function iso_oscar_gap(F::T) where T
return _iso_oscar_gap(F)
end

Expand Down
1 change: 1 addition & 0 deletions src/GAP/wrappers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ GAP.@wrap LargestMovedPoint(x::Any)::Int
GAP.@wrap LeftActingDomain(x::GapObj)::GapObj
GAP.@wrap LetterRepAssocWord(x::GapObj)::GapObj
GAP.@wrap LibInfoCharacterTable(x::GapObj)::GapObj
GAP.@wrap LieAlgebraByStructureConstants(x::GapObj, y::GapObj)::GapObj
GAP.@wrap LinearCharacters(x::GapObj)::GapObj
GAP.@wrap LinearCombination(x::GapObj, y::GapObj)::GapObj
GAP.@wrap ListPerm(x::GapObj)::GapObj
Expand Down

0 comments on commit dcbd2b9

Please sign in to comment.