1
0
mirror of https://github.com/kalmarek/GroupRings.jl.git synced 2024-11-11 20:40:28 +01:00
This commit is contained in:
kalmar 2017-05-17 17:43:37 +02:00
parent bef0b67af6
commit 4f5f6c685a

View File

@ -67,13 +67,12 @@ function GroupRingElem{T<:Number}(c::AbstractVector{T}, RG::GroupRing)
return GroupRingElem{T}(c, RG) return GroupRingElem{T}(c, RG)
end end
convert{T<:Number}(::Type{T}, X::GroupRingElem) = function convert{T<:Number}(::Type{T}, X::GroupRingElem)
GroupRingElem(convert(AbstractVector{T}, X.coeffs), parent(X)) return GroupRingElem(convert(AbstractVector{T}, X.coeffs), parent(X))
end
function GroupRing(G::Group, pm::Array{Int,2}) function GroupRing(G::Group, pm::Array{Int,2})
size(pm,1) == size(pm,2) || throw("pm must be of size (n,n), got size(pm,1) == size(pm,2) || throw("pm must be square, got $(size(pm))")
$(size(pm))")
return GroupRing(G, pm) return GroupRing(G, pm)
end end