Skip to content

Commit 26da73b

Browse files
committed
Make AbstractPolynomialLike non-iterable in broadcasting
1 parent 3708b7c commit 26da73b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/polynomial.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,3 +373,5 @@ function Base.round(p::AbstractPolynomialLike; args...)
373373
# round(0.1) is zero so we cannot use SortedUniqState
374374
polynomial(round.(terms(p); args...), SortedState())
375375
end
376+
377+
Base.broadcastable(p::AbstractPolynomialLike) = Ref(p)

0 commit comments

Comments
 (0)