1
0
mirror of https://github.com/kalmarek/GroupRings.jl.git synced 2024-11-14 21:25:28 +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) (*)(X::GroupRingElem, a) = mul(a,X)
# disallow Nemo.Rings to hijack *(::Integer, ::RingElem) # 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 (/)(X::GroupRingElem, a) = 1/a*X