Skip to content

Commit f0764c6

Browse files
committed
Implement mutable removeleadingterm
1 parent 3487d02 commit f0764c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/operators.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,8 @@ end
202202
function MP.mapcoefficientsnz_to!(output::Polynomial, f::Function, p::AbstractPolynomialLike)
203203
return MP.mapcoefficientsnz_to!(output, f, polynomial(p))
204204
end
205+
206+
function MA.mutable_operate!(::typeof(MP.removeleadingterm), p::Polynomial)
207+
deleteat!(p.terms, 1)
208+
return p
209+
end

0 commit comments

Comments
 (0)