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
1 changed files with 3 additions and 1 deletions

View File

@ -225,7 +225,9 @@ end
function (F::Automorphism{N})(v::NTuple{N, T}) where {N, T}
for (i, f) in enumerate(F.symbols)
v = f(v)::NTuple{N, T}
i % 5 == 0 && reduce!.(v)
if i % 2 == 0
freereduce!.(v)
end
end
return v
end