mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2025-01-12 22:22:32 +01:00
in automoprhism evaluation no need to freereduce!
Symbols already do so, where appropriate
This commit is contained in:
parent
b9c2a90bae
commit
a1ebf530f4
@ -217,20 +217,16 @@ end
|
|||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
function (s::AutSymbol)(v::NTuple{N, T}) where {N, T}
|
(s::AutSymbol)(v::NTuple{N, T}) where {N, T} = s.fn(v, s.pow)::NTuple{N, T}
|
||||||
if s.pow != 0
|
|
||||||
v = s.fn(v, s.pow)::NTuple{N, T}
|
|
||||||
end
|
|
||||||
return v
|
|
||||||
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, s) in enumerate(f.symbols)
|
for s in syllables(f)
|
||||||
v = s(v)::NTuple{N, T}
|
v = s(v)::NTuple{N, T}
|
||||||
if i % 5 == 0
|
# if iszero(i % 3)
|
||||||
freereduce!.(v)
|
# freereduce!.(v)
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
|
# return freereduce!.(v)
|
||||||
return v
|
return v
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user