fix: AbstractFPGroupElement change order of args in FPGroupElement

This commit is contained in:
Marek Kaluba 2021-07-05 15:05:03 +02:00
parent 2f5401be83
commit b191457526
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15
1 changed files with 5 additions and 5 deletions

View File

@ -64,11 +64,11 @@ mutable struct FPGroupElement{Gr<:AbstractFPGroup,W<:AbstractWord} <: AbstractFP
savedhash::UInt
parent::Gr
FPGroupElement(word::W, G::AbstractFPGroup) where {W<:AbstractWord} =
new{typeof(G),W}(word, UInt(0), G)
FPGroupElement(word::W, hash::UInt, G::AbstractFPGroup) where {W<:AbstractWord} =
FPGroupElement(word::W, G::AbstractFPGroup, hash::UInt=UInt(0)) where {W<:AbstractWord} =
new{typeof(G),W}(word, hash, G)
FPGroupElement{Gr, W}(word::AbstractWord, G::Gr) where {Gr, W} =
new{Gr, W}(word, UInt(0), G)
end
word(f::AbstractFPGroupElement) = f.word
@ -95,7 +95,7 @@ function Base.:(==)(g::AbstractFPGroupElement, h::AbstractFPGroupElement)
end
function Base.deepcopy_internal(g::FPGroupElement, stackdict::IdDict)
return FPGroupElement(copy(word(g)), g.savedhash, parent(g))
return FPGroupElement(copy(word(g)), parent(g), g.savedhash)
end
function Base.inv(g::GEl) where GEl <: AbstractFPGroupElement