Skip to content

Commit

Permalink
use eps of correct type in balreal (#927)
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen authored Oct 23, 2024
1 parent 2051b06 commit 637f5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ControlSystemsBase/src/matrix_comps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ function balreal(sys::ST) where ST <: AbstractStateSpace
U,Σ,V = SV

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

Expand Down

0 comments on commit 637f5cb

Please sign in to comment.