From 5d51146688102bdebe66aaa69ea0843f42a4edae Mon Sep 17 00:00:00 2001 From: kalmar Date: Tue, 16 May 2017 18:34:43 +0200 Subject: [PATCH] elem_type, parent_type, parent --- src/GroupAlgebras.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/GroupAlgebras.jl b/src/GroupAlgebras.jl index f6339d7..12b6035 100644 --- a/src/GroupAlgebras.jl +++ b/src/GroupAlgebras.jl @@ -29,6 +29,11 @@ end export GroupRing, GroupRingElem +elem_type(::GroupRing) = GroupRingElem + +parent_type(::GroupRingElem) = GroupRing + +parent(g::GroupRingElem) = g.parent GroupRingElem{T}(c::AbstractVector{T}, A::GroupRing) = GroupRingElem{T}(c,A)