pairing outer constructors

This commit is contained in:
kalmar 2017-07-19 22:48:59 +02:00
parent 5b128cd146
commit 10ab783844
1 changed files with 5 additions and 1 deletions

View File

@ -43,10 +43,14 @@ type GroupRing{Gr<:Group, T<:GroupElem} <: Ring
end
end
GroupRing{Gr<:Group}(G::Gr;initialise=true) = GroupRing{Gr, elem_type(G)}(G, initialise=initialise)
GroupRing{Gr<:Group, T<:GroupElem}(G::Gr, basis::Vector{T}; init=false) =
GroupRing{Gr, T}(G, basis, init=init)
GroupRing{Gr<:Group, T<:GroupElem}(G::Gr, b::Vector{T}, b_d::Dict{T,Int}, pm::Array{Int,2}) = GroupRing{Gr, T}(G, b, b_d, pm)
GroupRing{Gr<:Group}(G::Gr, pm::Array{Int,2}) =
GroupRing{Gr, elem_type(G)}(G, pm)
type GroupRingElem{T<:Number} <: RingElem
coeffs::AbstractVector{T}
parent::GroupRing