From 9b8c2f6b45d72503147702083e52803eb9d31682 Mon Sep 17 00:00:00 2001 From: kalmar Date: Wed, 17 May 2017 17:36:29 +0200 Subject: [PATCH] rearange fields in GroupRing; second internal constructor (full) --- src/GroupRings.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/GroupRings.jl b/src/GroupRings.jl index a2cb714..614d1bc 100644 --- a/src/GroupRings.jl +++ b/src/GroupRings.jl @@ -13,9 +13,9 @@ import Base: convert, show, hash, ==, +, -, *, //, /, length, norm, rationalize, type GroupRing <: Ring group::Group - pm::Array{Int,2} basis::Vector{GroupElem} basis_dict::Dict{GroupElem, Int} + pm::Array{Int,2} function GroupRing(G::Group; full=false) A = new(G) @@ -24,6 +24,10 @@ type GroupRing <: Ring end return A end + + function GroupRing(G::Group, basis, basis_dict, pm::Array{Int,2}) + return new(G, basis, basis_dict, pm) + end end type GroupRingElem{T<:Number} <: RingElem