diff --git a/Project.toml b/Project.toml index b3538f1ac..8c2f8b073 100644 --- a/Project.toml +++ b/Project.toml @@ -2,7 +2,7 @@ name = "ControlSystems" uuid = "a6e380b2-a6ca-5380-bf3e-84a91bcd477e" authors = ["Dept. Automatic Control, Lund University"] repo = "https://github.com/JuliaControl/ControlSystems.jl.git" -version = "1.10.4" +version = "1.10.5" [deps] ControlSystemsBase = "aaaaaaaa-a6ca-5380-bf3e-84a91bcd477e" @@ -23,7 +23,7 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" Aqua = "0.5" ControlSystemsBase = "1.3" DelayDiffEq = "5.31" -DiffEqCallbacks = "2.16, 3" +DiffEqCallbacks = "2.16, 3, 4" ForwardDiff = "0.10" Hungarian = "0.6, 0.7" OrdinaryDiffEq = "6.60" diff --git a/lib/ControlSystemsBase/src/matrix_comps.jl b/lib/ControlSystemsBase/src/matrix_comps.jl index 754fad33d..a9d36df75 100644 --- a/lib/ControlSystemsBase/src/matrix_comps.jl +++ b/lib/ControlSystemsBase/src/matrix_comps.jl @@ -628,7 +628,7 @@ For more advanced model reduction, see [RobustAndOptimalControl.jl - Model Reduc # Extended help $(_scaling_notice) """ -function baltrunc(sys::ST; atol = sqrt(eps()), rtol = 1e-3, n = nothing, residual=false) where ST <: AbstractStateSpace +function baltrunc(sys::ST; atol = sqrt(eps(numeric_type(sys))), rtol = 1e-3, n = nothing, residual=false) where ST <: AbstractStateSpace sysbal, S, T = balreal(sys) if n === nothing S = S[S .>= atol] diff --git a/lib/ControlSystemsBase/test/test_implicit_diff.jl b/lib/ControlSystemsBase/test/test_implicit_diff.jl index 799af38dd..7e95f41cb 100644 --- a/lib/ControlSystemsBase/test/test_implicit_diff.jl +++ b/lib/ControlSystemsBase/test/test_implicit_diff.jl @@ -3,6 +3,7 @@ using ImplicitDifferentiation using ForwardDiff using FiniteDifferences using ComponentArrays +using Test, LinearAlgebra fdgrad(f, x) = FiniteDifferences.grad(central_fdm(3, 1), f, x) |> first P = ssrand(1, 1, 2)