Skip to content

Commit 637f5cb

Browse files
authored
use eps of correct type in balreal (#927)
1 parent 2051b06 commit 637f5cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ControlSystemsBase/src/matrix_comps.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ function balreal(sys::ST) where ST <: AbstractStateSpace
592592
U,Σ,V = SV
593593

594594
# Determine the order of a minimal realization to √ϵ tolerance
595-
rmin = count.> sqrt(eps())*Σ[1])
595+
rmin = count.> sqrt(eps(eltype(Σ)))*Σ[1])
596596
i1 = 1:rmin
597597
Σ = Σ[i1]
598598

0 commit comments

Comments
 (0)