mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-11-15 05:30:28 +01:00
remove mul functions: * should call mul! directly
This commit is contained in:
parent
5c2fabfb08
commit
f586cb5146
@ -385,24 +385,7 @@ function mul(X::AbstractVector, Y::AbstractVector, pm::Array{Int,2})
|
|||||||
return result
|
return result
|
||||||
end
|
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})
|
function divexact{T}(X::GroupRingElem{T}, Y::GroupRingElem{T})
|
||||||
if length(Y) != 1
|
if length(Y) != 1
|
||||||
|
Loading…
Reference in New Issue
Block a user