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
functionSisoZpk{T,TR}(z::Vector, p::Vector, k::Number) where {T<:Number, TR<:Number}
22
23
SisoZpk{T,TR}(Vector{TR}(z), Vector{TR}(p), T(k))
23
24
end
24
25
functionSisoZpk{T}(z::Vector, p::Vector, k::Number) where T
@@ -27,13 +28,6 @@ function SisoZpk{T}(z::Vector, p::Vector, k::Number) where T
27
28
end
28
29
functionSisoZpk(z::AbstractVector{TZ}, p::AbstractVector{TP}, k::T) where {T<:Number, TZ<:Number, TP<:Number} # NOTE: is this constructor really needed?
29
30
TR =promote_type(TZ,TP)
30
-
# Could check if complex roots come with their conjugates,
31
-
# i.e., if the SisoZpk corresponds to a real-valued system
32
-
33
-
if TR <:Complex&& T <:Real
34
-
@assertcheck_real(z) "zpk model should be real-valued, but zeros do not come in conjugate pairs."
35
-
@assertcheck_real(p) "zpk model should be real-valued, but poles do not come in conjugate pairs."
36
-
end
37
31
SisoZpk{T,TR}(Vector{TR}(z), Vector{TR}(p), k)
38
32
end
39
33
@@ -109,32 +103,33 @@ function minreal(sys::SisoZpk{T,TR}, eps::Real) where {T, TR}
109
103
SisoZpk{T, TR}(newZ, newP, sys.k)
110
104
end
111
105
112
-
#FIXME: Perhaps move to some other file with auxilliary functions,
113
-
# the name could also be imporoved. Perhaps this functionality can be found in some other package.
114
-
""" If TR is Complex and T is Real, check that every pole is matched to its conjugate
115
-
this assumes that the compelx poles are ordered as they are output by the LAPACK
116
-
routines that return complex-conjugated values, i.e., (x+iy) is followed by (x-iy)"""
0 commit comments