Skip to content

Commit ef3adc0

Browse files
committed
do not define zero arg vect
1 parent 88951ce commit ef3adc0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/ControlSystemsBase/src/connections.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,12 @@ Base.typed_hcat(::Type{S}, X::Union{AbstractArray{<:Number,1}, AbstractArray{<:N
140140

141141
## Mixed-type array creation
142142
# When creating an array of systems, an error may be thrown if the default Base.vect is called that tries to promote all systems to a common type. E.g., when using non-proper transfer functions and statespace systems. We thus opt out of the conversion with the method below
143-
function Base.vect(X::LTISystem...)
144-
LTISystem[X...]
143+
function Base.vect(X0::LTISystem, X::LTISystem...)
144+
LTISystem[X0, X...]
145145
end
146146

147-
function Base.vect(X::T...) where T <: LTISystem
148-
T[X...]
147+
function Base.vect(X0::T, X::T...) where T <: LTISystem
148+
T[X0, X...]
149149
end
150150

151151
"""

0 commit comments

Comments
 (0)