You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/types/SisoTfTypes/SisoZpk.jl
+15-9
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ function SisoZpk{T}(z::Vector, p::Vector, k::Number) where T
25
25
SisoZpk{T,TR}(Vector{TR}(z), Vector{TR}(p), T(k))
26
26
end
27
27
functionSisoZpk(z::AbstractVector{TZ}, p::AbstractVector{TP}, k::T) where {T<:Number, TZ<:Number, TP<:Number} # NOTE: is this constructor really needed?
28
-
TR =promote_type(TZ,TP,T)
28
+
TR =promote_type(TZ,TP)
29
29
# Could check if complex roots come with their conjugates,
30
30
# i.e., if the SisoZpk corresponds to a real-valued system
@test_throws AssertionError zpk([-1+im], [-1+im,-1+im],1) # Given the type of k this should be a real-coefficient system, but poles and zeros don't come in conjugate pairs
0 commit comments