We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76e72c6 commit a54405eCopy full SHA for a54405e
lib/ControlSystemsBase/test/test_matrix_comps.jl
@@ -1,3 +1,4 @@
1
+using Test, LinearAlgebra
2
@testset "test_matrix_comps" begin
3
A = [-0.21 0.2; 0.2 -0.21]
4
B = 0.01*[1 0; 0 1]
@@ -8,7 +9,7 @@ sysr, G = balreal(sys)
8
9
10
@test gram(sysr, :c) ≈ diagm(G)
11
@test gram(sysr, :o) ≈ diagm(G)
-@test sort(poles(sysr)) ≈ sort(poles(sys))
12
+@test sort(poles(sysr), by=real) ≈ sort(poles(sys), by=real)
13
14
sysb,T = ControlSystemsBase.balance_statespace(sys)
15
@test similarity_transform(sysb, T) ≈ sys
0 commit comments