1
0
mirror of https://github.com/kalmarek/GroupRings.jl.git synced 2024-12-28 18:50:29 +01:00

override Nemo's *(Rational, ::GroupRingElem)

This commit is contained in:
kalmarek 2017-09-15 19:03:43 +02:00
parent 36be0e000f
commit 8abc77a0c0

View File

@ -295,7 +295,7 @@ end
(*)(X::GroupRingElem, a) = mul(a,X)
# disallow Nemo.Rings to hijack *(::Integer, ::RingElem)
(*){T<:Integer}(a::T, X::GroupRingElem) = mul(a,X)
(*)(a::Union{Integer, Rational}, X::GroupRingElem) = mul(a,X)
(/)(X::GroupRingElem, a) = 1/a*X