Skip to content

Commit

Permalink
Attempt to replace division by divexact.
Browse files Browse the repository at this point in the history
  • Loading branch information
HechtiDerLachs committed Jul 29, 2024
1 parent bfcfee3 commit 02f9c9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Rings/mpoly-localizations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1162,6 +1162,7 @@ function Base.:(/)(a::ZZRingElem, b::T) where {T<:MPolyLocRingElem}
end

function Base.:(/)(a::T, b::T) where {T<:MPolyLocRingElem}
return divexact(a, b)
parent(a) == parent(b) || error("the arguments do not have the same parent ring")
g = gcd(numerator(a), numerator(b))
c = divexact(numerator(a), g)
Expand Down

0 comments on commit 02f9c9c

Please sign in to comment.