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.
2 parents 3a4e7b6 + 3c5a5d2 commit b195291Copy full SHA for b195291
lib/ControlSystemsBase/src/analysis.jl
@@ -43,7 +43,7 @@ function poles(sys::TransferFunction{<:TimeEvolution,SisoZpk{T,TR}}) where {T, T
43
end
44
45
46
-function count_eigval_multiplicity(p, location, e=eps(maximum(abs, p)))
+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
47
n = length(p)
48
n == 0 && return 0
49
for i = 1:n
0 commit comments