Skip to content

Commit

Permalink
address comments (improve syntax)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBreuer committed Sep 26, 2024
1 parent cab15f2 commit c8451b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Groups/homomorphisms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1297,7 +1297,7 @@ end
Base.:^(x::GAPGroupElem{T},f::GAPGroupElem{AutomorphismGroup{T}}) where T <: GAPGroup = apply_automorphism(f, x, true)
#Base.:^(f::GAPGroupElem{AutomorphismGroup{T}},g::GAPGroupElem{AutomorphismGroup{T}}) where T <: GAPGroup = g^-1*f*g

function (A::AutomorphismGroup{S})(f::GAPGroupHomomorphism{T,T}) where S <: GAPGroup where T <: GAPGroup
function (A::AutomorphismGroup{<: GAPGroup})(f::GAPGroupHomomorphism{T,T}) where T <: GAPGroup
@assert domain(f)==A.G && codomain(f)==A.G "f not in A"
@assert is_bijective(f) "f not in A"
return group_element(A, GapObj(f))
Expand Down
2 changes: 1 addition & 1 deletion src/Groups/sub.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ julia> H == alternating_group(4)
true
```
"""
function sub(G::GAPGroup, gens::AbstractVector{S}; check::Bool = true) where S <: GAPGroupElem
function sub(G::GAPGroup, gens::AbstractVector{<: GAPGroupElem}; check::Bool = true)
if check
@req all(x -> parent(x) === G || x in G, gens) "not all elements of gens lie in G"
end
Expand Down

0 comments on commit c8451b9

Please sign in to comment.