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 e577691 commit 85224a4Copy full SHA for 85224a4
src/MPoly.jl
@@ -517,7 +517,8 @@ function exponent_vectors(a::MPolyRingElem{T}; inplace::Bool = false) where T <:
517
end
518
519
function exponent_vectors(::Type{Vector{S}}, a::MPolyRingElem{T}; inplace::Bool = false) where {T <: RingElement, S}
520
- t = zeros(S, nvars(parent(a)))
+ # Don't use `zeros`: If S === ZZRingElem, then all the entries would be identical
521
+ t = [zero(S) for _ in 1:nvars(parent(a))]
522
return Generic.MPolyExponentVectors(a, inplace, t)
523
524
0 commit comments