mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2025-01-11 14:02:33 +01:00
GSymbol has str fieldname, not gen
This commit is contained in:
parent
3d9b27756f
commit
b5139306f7
@ -70,7 +70,7 @@ length(W::GWord) = sum([length(s) for s in W.symbols])
|
||||
function free_reduce!(W::GWord)
|
||||
reduced = true
|
||||
for i in 1:length(W.symbols) - 1
|
||||
if W.symbols[i].gen == W.symbols[i+1].gen
|
||||
if W.symbols[i].str == W.symbols[i+1].str
|
||||
reduced = false
|
||||
p1 = W.symbols[i].pow
|
||||
p2 = W.symbols[i+1].pow
|
||||
@ -198,7 +198,7 @@ function inv{T}(W::GWord{T})
|
||||
end
|
||||
|
||||
is_subsymbol(s::GSymbol, t::GSymbol) =
|
||||
s.gen == t.gen && (0 ≤ s.pow ≤ t.pow || 0 ≥ s.pow ≥ t.pow)
|
||||
s.str == t.str && (0 ≤ s.pow ≤ t.pow || 0 ≥ s.pow ≥ t.pow)
|
||||
|
||||
function findfirst(W::GWord, Z::GWord)
|
||||
n = length(Z.symbols)
|
||||
|
Loading…
Reference in New Issue
Block a user