1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-11-19 06:30:29 +01:00

fix evaluate

This commit is contained in:
kalmarek 2020-03-14 08:56:26 -07:00
parent 68abfafd29
commit 920bc1f28d
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15

View File

@ -215,24 +215,24 @@ end
# #
############################################################################### ###############################################################################
function (f::AutSymbol)(v::NTuple{N, T}) where {N, T} function (s::AutSymbol)(v::NTuple{N, T}) where {N, T}
if f.pow != 0 if s.pow != 0
v = f.fn(v, f.pow)::NTuple{N, T} v = s.fn(v, s.pow)::NTuple{N, T}
end end
return v return v
end end
function (F::Automorphism{N})(v::NTuple{N, T}) where {N, T} function (f::Automorphism{N})(v::NTuple{N, T}) where {N, T}
for (i, f) in enumerate(F.symbols) for (i, s) in enumerate(f.symbols)
v = f(v)::NTuple{N, T} v = s(v)::NTuple{N, T}
if i % 2 == 0 if i % 5 == 0
freereduce!.(v) freereduce!.(v)
end end
end end
return v return v
end end
evaluate(F::Automorphism{N}) = f(domain(parent(f))) evaluate(f::Automorphism) = f(domain(parent(f)))
############################################################################### ###############################################################################
# #