From f586cb51460b6c6eb159b23d7db8a19a16339ce6 Mon Sep 17 00:00:00 2001 From: kalmar Date: Wed, 19 Jul 2017 22:41:15 +0200 Subject: [PATCH] remove mul functions: * should call mul! directly --- src/GroupRings.jl | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/GroupRings.jl b/src/GroupRings.jl index 9bfd581..a41b9c6 100644 --- a/src/GroupRings.jl +++ b/src/GroupRings.jl @@ -385,24 +385,7 @@ function mul(X::AbstractVector, Y::AbstractVector, pm::Array{Int,2}) return result end -function *{T<:Number}(X::GroupRingElem{T}, Y::GroupRingElem{T}) - parent(X) == parent(Y) || throw(ArgumentError( - "Elements don't seem to belong to the same Group Ring!")) - RG = parent(X) - isdefined(RG, :pm) || complete(RG) - result = mul(X.coeffs, Y.coeffs, RG.pm) - return GroupRingElem(result, RG) -end -function *{T<:Number, S<:Number}(X::GroupRingElem{T}, Y::GroupRingElem{S}) - parent(X) == parent(Y) || throw("Elements don't seem to belong to the same - Group Ring!") - warn("Multiplying elements with different base rings!") - RG = parent(X) - isdefined(RG, :pm) || complete(RG) - result = mul(X.coeffs, Y.coeffs, RG.pm) - return GroupRingElem(result, RG) -end function divexact{T}(X::GroupRingElem{T}, Y::GroupRingElem{T}) if length(Y) != 1