mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-25 02:05:30 +01:00
AutSymbol evaluation -- much simpler
due to automorphism type carried as an attribute
This commit is contained in:
parent
3d2bc63723
commit
0144c49372
@ -186,24 +186,12 @@ end
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
function (f::AutSymbol){T}(v::Vector{GWord{T}})
|
function (f::AutSymbol){T}(v::Vector{GWord{T}})
|
||||||
if f.pow == 0
|
if f.pow == 0
|
||||||
return v
|
nothing
|
||||||
end
|
else
|
||||||
if f.ex == :(id())
|
v = f.typ(v, f.pow)
|
||||||
func = identity(v)
|
end
|
||||||
elseif f.ex.args[1] == :ϱ
|
return v
|
||||||
func = ϱ(f.ex.args[2], f.ex.args[3], f.pow)
|
|
||||||
elseif f.ex.args[1] == :λ
|
|
||||||
func = λ(f.ex.args[2], f.ex.args[3], f.pow)
|
|
||||||
elseif f.ex.args[1] == :ɛ
|
|
||||||
func = ɛ(f.ex.args[2], f.pow)
|
|
||||||
elseif f.ex.args[1] == :σ
|
|
||||||
g = PermutationGroup(length(f.ex.args[2]))(f.ex.args[2])
|
|
||||||
func = σ(g, f.ex.args[3])
|
|
||||||
else
|
|
||||||
throw("Unknown AutSymbol!")
|
|
||||||
end
|
|
||||||
return func(v)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function (F::AutGroupElem)(v::Vector)
|
function (F::AutGroupElem)(v::Vector)
|
||||||
|
Loading…
Reference in New Issue
Block a user