Skip to content

Commit ae1cce1

Browse files
authored
minor type-inference improvements in roots (#505)
* minor type-inference improvements in roots * remove Kint
1 parent db498d9 commit ae1cce1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/polynomials/standard-basis.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -494,12 +494,12 @@ function roots(p::P; kwargs...) where {T, P <: StandardBasisPolynomial{T}}
494494
if isnothing(K)
495495
return R[]
496496
end
497-
k = findfirst(!iszero, as)
497+
k = findfirst(!iszero, as)::Int
498498

499-
k == K && return zeros(R, k-1)
499+
k == K && return zeros(R, k-1)
500500

501501
# find eigenvalues of the companion matrix of the 0-deflated polynomial
502-
comp = companion((P)(as[k:K], indeterminate(p)))
502+
comp = companion((P)(as[k:K], Var(indeterminate(p))))
503503
L = eigvals(comp; kwargs...)
504504
append!(L, zeros(eltype(L), k-1))
505505

0 commit comments

Comments
 (0)