Skip to content

Commit a445ea3

Browse files
committed
Add fallback
1 parent 356110e commit a445ea3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/MPoly.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,10 @@ function exponent_vector!(e::Vector{S}, a::MPolyRingElem{T}, i::Int) where {T <:
500500
return S.(exponent_vector(a, i))
501501
end
502502

503+
function exponent_vector(::Type{Vector{S}}, a::MPolyRingElem{T}, i::Int) where {T <: RingElement, S}
504+
return S.(exponent_vector(a, i))
505+
end
506+
503507
function coeff!(c::T, a::MPolyRingElem{T}, i::Int) where {T <: RingElement}
504508
return coeff(a, i)
505509
end

0 commit comments

Comments
 (0)