We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e289a0d commit 03d6b8bCopy full SHA for 03d6b8b
src/gcd.jl
@@ -959,6 +959,13 @@ function primitive_part(
959
)
960
return p
961
end
962
+function primitive_part(
963
+ p::_APL{<:Complex{<:AbstractFloat}},
964
+ ::AbstractUnivariateGCDAlgorithm,
965
+ ::MA.MutableTrait,
966
+)
967
+ return p
968
+end
969
970
"""
971
primitive_part_content(poly::AbstractPolynomialLike{T}, algo::AbstractUnivariateGCDAlgorithm) where {T}
test/commutative/gcd.jl
@@ -305,5 +305,10 @@ end
305
p2 = MP.polynomial(p * q, ComplexF64)
306
g = @inferred gcd(p1, p2)
307
@test isone(g)
308
+
309
+ p1 = p - 2.5im
310
+ p2 = 2.0p - 5.0im
311
+ g = @inferred gcd(p1, p2)
312
+ @test isequal(p1, g) || isequal(p2, g)
313
314
0 commit comments