1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-26 02:20:30 +01:00

tweak the reduce! constant

This commit is contained in:
kalmarek 2020-03-12 18:35:53 -05:00
parent 5414988e98
commit 6fd89c5a61
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15

View File

@ -225,7 +225,9 @@ 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, f) in enumerate(F.symbols)
v = f(v)::NTuple{N, T} v = f(v)::NTuple{N, T}
i % 5 == 0 && reduce!.(v) if i % 2 == 0
freereduce!.(v)
end
end end
return v return v
end end