Skip to content

Commit b195291

Browse files
authored
fix: handle poor type inference in count_eigval_multiplicity function (#1001)
2 parents 3a4e7b6 + 3c5a5d2 commit b195291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ControlSystemsBase/src/analysis.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function poles(sys::TransferFunction{<:TimeEvolution,SisoZpk{T,TR}}) where {T, T
4343
end
4444

4545

46-
function count_eigval_multiplicity(p, location, e=eps(maximum(abs, p)))
46+
function count_eigval_multiplicity(p, location, e=eps(maximum(abs, p, init=0.0))) # The init is to handle poor type inference with exotic number types
4747
n = length(p)
4848
n == 0 && return 0
4949
for i = 1:n

0 commit comments

Comments
 (0)