Skip to content

Commit aed3f92

Browse files
authored
Merge pull request #655 from JuliaControl/baltype
fix type instability in balance_statespace
2 parents 08eee7e + 5fc3e4e commit aed3f92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/conversion.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function balance_statespace(A::AbstractMatrix, B::AbstractMatrix, C::AbstractMat
176176
return _balance_statespace(A,B,C, perm)
177177
catch
178178
@warn "Unable to balance state-space, returning original system"
179-
return A,B,C,I
179+
return A,B,C,convert(typeof(A), I(size(A, 1)))
180180
end
181181
end
182182

0 commit comments

Comments
 (0)