From 89c5971cdd0f690a32bdbf9ea5531a5c66dbf8f5 Mon Sep 17 00:00:00 2001 From: kalmar Date: Tue, 16 May 2017 18:29:14 +0200 Subject: [PATCH] GroupAlgebraElement -> GroupRingElem --- src/GroupAlgebras.jl | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/GroupAlgebras.jl b/src/GroupAlgebras.jl index 42c8941..ae72b7f 100644 --- a/src/GroupAlgebras.jl +++ b/src/GroupAlgebras.jl @@ -17,18 +17,14 @@ type GroupRing <: Ring GroupRing(G::Group) = new(G) end -immutable GroupAlgebraElement{T<:Number} - coefficients::AbstractVector{T} - product_matrix::Array{Int,2} - # basis::Array{Any,1} - function GroupAlgebraElement(coefficients::AbstractVector, - product_matrix::Array{Int,2}) +type GroupRingElem{T<:Number} + coeffs::AbstractVector{T} + parent::GroupRing - size(product_matrix, 1) == size(product_matrix, 2) || - throw(ArgumentError("Product matrix has to be square")) - new(coefficients, product_matrix) - end + function GroupRingElem(coeffs::AbstractVector) + return new(coeffs) + end end # GroupAlgebraElement(c,pm,b) = GroupAlgebraElement(c,pm)