Skip to content

Commit 0308049

Browse files
committed
Add monovec for monomials on AbstractPolynomialLike
1 parent a789f50 commit 0308049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/polynomial.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Calling `monomials` on ``4x^2y + xy + 2x`` should return an iterator of ``[x^2y,
182182
183183
Calling `monomials((x, y), [1, 3], m -> degree(m, y) != 1)` should return `[x^3, x*y^2, y^3, x]` where `x^2*y` and `y` have been excluded by the filter.
184184
"""
185-
monomials(p::APL) = monomial.(terms(p))
185+
monomials(p::APL) = monovec(monomial.(terms(p)))
186186

187187
#$(SIGNATURES)
188188
"""

0 commit comments

Comments
 (0)