mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-25 18:15:29 +01:00
fix bug with isone on Automorphism
This commit is contained in:
parent
2e560738f6
commit
812b2e15a1
@ -88,6 +88,13 @@ function Base.:(==)(g::A, h::A) where {A<:FPGroupElement{<:AutomorphismGroup}}
|
|||||||
return equal
|
return equal
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function Base.isone(g::FPGroupElement{<:AutomorphismGroup})
|
||||||
|
if length(word(g)) > 8
|
||||||
|
normalform!(g)
|
||||||
|
end
|
||||||
|
return evaluate(g) == parent(g).domain
|
||||||
|
end
|
||||||
|
|
||||||
# eye-candy
|
# eye-candy
|
||||||
|
|
||||||
Base.show(io::IO, ::Type{<:FPGroupElement{<:AutomorphismGroup{T}}}) where {T<:FreeGroup} =
|
Base.show(io::IO, ::Type{<:FPGroupElement{<:AutomorphismGroup{T}}}) where {T<:FreeGroup} =
|
||||||
|
Loading…
Reference in New Issue
Block a user