We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1c389d commit 6879422Copy full SHA for 6879422
src/polynomial.jl
@@ -151,7 +151,7 @@ coefficients(p::APL) = coefficient.(terms(p))
151
function coefficients(p::APL{T}, X::AbstractVector) where T
152
σ, mv = sortmonovec(X)
153
@assert length(mv) == length(X) # no duplicate in X
154
- c = Vector{T}(length(mv))
+ c = zeros(T, length(mv))
155
i = 1
156
for t in terms(p)
157
m = monomial(t)
0 commit comments