mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-25 02:05:30 +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
|
end
|
||||||
|
|
||||||
# FPSymbol(x::String, G::Group) = FPSymbol(x,1,G)
|
# FPSymbol(x::String, G::Group) = FPSymbol(x,1,G)
|
||||||
# FPSymbol(s::GSymbol, G::Group) = FPSymbol(s.gen, s.pow, G)
|
# FPSymbol(s::GSymbol, G::Group) = FPSymbol(s.gen, s.pow, G)
|
||||||
|
|
||||||
typealias FPGroupElem GWord{FPSymbol}
|
|
||||||
|
|
||||||
immutable FPGroup <: Group
|
immutable FPGroup <: Group
|
||||||
gens::Vector{FPSymbol}
|
gens::Vector{FPSymbol}
|
||||||
|
Loading…
Reference in New Issue
Block a user