mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-11-19 06:30:29 +01:00
move ==(::GSymbol, ::GSymbol) to Groups.jl
This commit is contained in:
parent
b8abe64656
commit
f2fb7f53cd
@ -238,8 +238,6 @@ function hash(g::Automorphism, h::UInt)
|
||||
return xor(g.savedhash, h)
|
||||
end
|
||||
|
||||
(==)(s::AutSymbol, t::AutSymbol) = s.str == t.str && s.pow == t.pow
|
||||
|
||||
function (==)(g::Automorphism{N}, h::Automorphism{N}) where N
|
||||
parent(g) == parent(h) || return false
|
||||
|
||||
|
@ -119,13 +119,6 @@ end
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
function (==)(s::FPSymbol, t::FPSymbol)
|
||||
isone(s) && isone(t) && return true
|
||||
s.str == t.str || return false
|
||||
s.pow == t.pow || return false
|
||||
return true
|
||||
end
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# Inversion
|
||||
|
@ -101,14 +101,6 @@ end
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
function (==)(s::FreeSymbol, t::FreeSymbol)
|
||||
s.pow == t.pow || return false
|
||||
s.pow == 0 && return true
|
||||
s.str == t.str || return false
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# Inversion
|
||||
|
@ -213,6 +213,13 @@ function (==)(W::GWord, Z::GWord)
|
||||
return W.symbols == Z.symbols
|
||||
end
|
||||
|
||||
function (==)(s::GSymbol, t::GSymbol)
|
||||
s.pow == t.pow || return false
|
||||
s.pow == 0 && return true
|
||||
s.str == t.str || return false
|
||||
return true
|
||||
end
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# Binary operators
|
||||
|
Loading…
Reference in New Issue
Block a user