GroupAlgebraElement -> GroupRingElem

This commit is contained in:
kalmar 2017-05-16 18:29:14 +02:00
parent 7a23fdb759
commit 89c5971cdd
1 changed files with 6 additions and 10 deletions

View File

@ -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)