mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-09-05 14:46:44 +02:00
workaround Nemo-defined (*)(::Integer, RingElem)
This commit is contained in:
parent
26abb88b3a
commit
0c0b3551b2
@ -205,7 +205,11 @@ function scalar_multiplication{T<:Number, S<:Number}(a::T,
|
|||||||
return GroupRingElem(a*X.coeffs, parent(X))
|
return GroupRingElem(a*X.coeffs, parent(X))
|
||||||
end
|
end
|
||||||
|
|
||||||
(*){T<:Number}(a::T,X::GroupRingElem) = scalar_multiplication(a, X)
|
(*)(a, X::GroupRingElem) = scalar_mult(a, X)
|
||||||
|
(*)(X::GroupRingElem, a) = a*X
|
||||||
|
|
||||||
|
# disallow Nemo.Rings to hijack *(::Integer, ::RingElem)
|
||||||
|
(*){T<:Integer}(a::T, X::GroupRingElem) = scalar_mult(a, X)
|
||||||
|
|
||||||
(/){T<:Number}(a::T, X::GroupRingElem) = scalar_multiplication(1/a, X)
|
(/){T<:Number}(a::T, X::GroupRingElem) = scalar_multiplication(1/a, X)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user