mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-26 02:20:30 +01:00
simplify actions of PermAut and FlipAut
This commit is contained in:
parent
a1ebf530f4
commit
8248039d63
@ -78,16 +78,10 @@ end
|
|||||||
|
|
||||||
function (σ::PermAut)(v, pow::Integer=1)
|
function (σ::PermAut)(v, pow::Integer=1)
|
||||||
w = deepcopy(v)
|
w = deepcopy(v)
|
||||||
if pow == 1
|
|
||||||
@inbounds for k in eachindex(v)
|
|
||||||
v[k].symbols = w[σ.perm.d[k]].symbols
|
|
||||||
end
|
|
||||||
else
|
|
||||||
s = (σ.perm^pow).d
|
s = (σ.perm^pow).d
|
||||||
@inbounds for k in eachindex(v)
|
@inbounds for k in eachindex(v)
|
||||||
v[k].symbols = w[s[k]].symbols
|
v[k].symbols = w[s[k]].symbols
|
||||||
end
|
end
|
||||||
end
|
|
||||||
return v
|
return v
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user