Parametrising Automorphisms

This commit is contained in:
kalmar 2017-01-17 17:54:56 +01:00
parent c858b77b8c
commit 2a0e6ee4fb
1 changed files with 6 additions and 4 deletions

View File

@ -167,12 +167,14 @@ end
(^)(x::GWord, n::Integer) = power_by_squaring(x,n)
type FGAutomorphism
domain::Vector{GSymbol}
image::Vector{GWord}
type FGAutomorphism{T<:GSymbol}
domain::Vector{T}
image::Vector{GWord{T}}
map::Function
function FGAutomorphism(domain::Vector{FGSymbol}, image::Vector{GWord}, map::Function)
function FGAutomorphism{T}(domain::Vector{T}, image::Vector{GWord{T}}, map::Function)
length(domain) == length(unique(domain)) ||
throw(ArgumentError("The elements of $domain are not unique"))
length(domain) == length(image) ||