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:
parent
36be0e000f
commit
8abc77a0c0
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user