mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-09-27 19:40:36 +02: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)
|
return xor(g.savedhash, h)
|
||||||
end
|
end
|
||||||
|
|
||||||
(==)(s::AutSymbol, t::AutSymbol) = s.str == t.str && s.pow == t.pow
|
|
||||||
|
|
||||||
function (==)(g::Automorphism{N}, h::Automorphism{N}) where N
|
function (==)(g::Automorphism{N}, h::Automorphism{N}) where N
|
||||||
parent(g) == parent(h) || return false
|
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
|
# 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
|
# Inversion
|
||||||
|
@ -213,6 +213,13 @@ function (==)(W::GWord, Z::GWord)
|
|||||||
return W.symbols == Z.symbols
|
return W.symbols == Z.symbols
|
||||||
end
|
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
|
# Binary operators
|
||||||
|
Loading…
Reference in New Issue
Block a user