mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-25 18:15:29 +01:00
perm_autsymbol(::Vector{Int}) convenience function
This commit is contained in:
parent
9606a14743
commit
d3a9f8d3f6
@ -89,6 +89,11 @@ function perm_autsymbol(p::perm; pow::Int=1)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function perm_autsymbol(a::Vector{Int})
|
||||||
|
G = PermutationGroup(length(a))
|
||||||
|
return perm_autsymbol(G(a))
|
||||||
|
end
|
||||||
|
|
||||||
function getperm(s::AutSymbol)
|
function getperm(s::AutSymbol)
|
||||||
if s.ex.args[1] == :σ
|
if s.ex.args[1] == :σ
|
||||||
p = s.ex.args[2]
|
p = s.ex.args[2]
|
||||||
|
Loading…
Reference in New Issue
Block a user