Skip to content

Commit 6879422

Browse files
committed
Fix coefficients
1 parent d1c389d commit 6879422

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
@@ -151,7 +151,7 @@ coefficients(p::APL) = coefficient.(terms(p))
151151
function coefficients(p::APL{T}, X::AbstractVector) where T
152152
σ, mv = sortmonovec(X)
153153
@assert length(mv) == length(X) # no duplicate in X
154-
c = Vector{T}(length(mv))
154+
c = zeros(T, length(mv))
155155
i = 1
156156
for t in terms(p)
157157
m = monomial(t)

0 commit comments

Comments
 (0)