mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-11-11 20:40:28 +01:00
GroupAlgebraElement -> GroupRingElem
This commit is contained in:
parent
7a23fdb759
commit
89c5971cdd
@ -17,18 +17,14 @@ type GroupRing <: Ring
|
|||||||
|
|
||||||
GroupRing(G::Group) = new(G)
|
GroupRing(G::Group) = new(G)
|
||||||
end
|
end
|
||||||
immutable GroupAlgebraElement{T<:Number}
|
|
||||||
coefficients::AbstractVector{T}
|
|
||||||
product_matrix::Array{Int,2}
|
|
||||||
# basis::Array{Any,1}
|
|
||||||
|
|
||||||
function GroupAlgebraElement(coefficients::AbstractVector,
|
type GroupRingElem{T<:Number}
|
||||||
product_matrix::Array{Int,2})
|
coeffs::AbstractVector{T}
|
||||||
|
parent::GroupRing
|
||||||
|
|
||||||
size(product_matrix, 1) == size(product_matrix, 2) ||
|
function GroupRingElem(coeffs::AbstractVector)
|
||||||
throw(ArgumentError("Product matrix has to be square"))
|
return new(coeffs)
|
||||||
new(coefficients, product_matrix)
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# GroupAlgebraElement(c,pm,b) = GroupAlgebraElement(c,pm)
|
# GroupAlgebraElement(c,pm,b) = GroupAlgebraElement(c,pm)
|
||||||
|
Loading…
Reference in New Issue
Block a user