mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-24 18:05:27 +01:00
introduce FPSymbol as concrete type of GSymbol, parentless
This commit is contained in:
parent
cbfc3979bb
commit
de6f6bc52d
@ -1,16 +1,17 @@
|
||||
|
||||
|
||||
immutable FPSymbol <: GSymbol
|
||||
str::String
|
||||
pow::Int
|
||||
end
|
||||
|
||||
typealias FPGroupElem GWord{FPSymbol}
|
||||
|
||||
immutable FPSymbol{T<:Group} <: GSymbol
|
||||
gen::String
|
||||
pow::Integer
|
||||
parent::T
|
||||
end
|
||||
|
||||
# FPSymbol(x::String, G::Group) = FPSymbol(x,1,G)
|
||||
# FPSymbol(s::GSymbol, G::Group) = FPSymbol(s.gen, s.pow, G)
|
||||
|
||||
typealias FPGroupElem GWord{FPSymbol}
|
||||
|
||||
immutable FPGroup <: Group
|
||||
gens::Vector{FPSymbol}
|
||||
|
Loading…
Reference in New Issue
Block a user