mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-25 02:05:30 +01:00
but it makes more sense to define word for abstract GWords
This commit is contained in:
parent
711d7dec12
commit
7b564d5e89
@ -36,12 +36,10 @@ GWord{T<:GSymbol}(s::T) = GWord{T}([s])
|
|||||||
convert{T<:GSymbol, W<:Word}(::Type{W}, s::T) = GWord{T}(s)
|
convert{T<:GSymbol, W<:Word}(::Type{W}, s::T) = GWord{T}(s)
|
||||||
|
|
||||||
|
|
||||||
function length(W::GWord)
|
|
||||||
return sum([abs(s.pow) for s in W.symbols])
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
length(W::GWord) = sum([length(s) for s in W.symbols])
|
||||||
|
|
||||||
function join_free_symbols!(W::GWord)
|
function join_free_symbols!(W::GWord)
|
||||||
reduced = true
|
reduced = true
|
||||||
|
Loading…
Reference in New Issue
Block a user