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:
parent
5414988e98
commit
6fd89c5a61
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user