Skip to content

Commit

Permalink
Tuning coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasvarga committed Nov 23, 2020
1 parent 34be88c commit 1db52d2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/test_cplyap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,14 @@ X = U*U'; @test norm(A*X*E'+E*X*A'+R*R')/max(1,norm(X))/norm(A) < reltol &&
norm(A*U-E*U*β)/max(1,norm(U))/norm(A) < reltol &&
norm(E*U*α - R)/max(1,norm(R)) < reltol

U = copy(R)
Q = qr(rand(2,2)).Q; A1 = Q*A; E1 = Q*E;
β, α = MatrixEquations.pglyap2!(A1, E1, U, adj = false, disc = false)
X = U*U'; @test norm(A1*X*E1'+E1*X*A1'+R*R')/max(1,norm(X))/norm(A) < reltol &&
norm(A1*U-E1*U*β)/max(1,norm(U))/norm(A) < reltol &&
norm(E1*U*α - R)/max(1,norm(R)) < reltol


U = copy(0*R)
β, α = MatrixEquations.pglyap2!(A, E, U, adj = false, disc = false)
X = U*U'; @test norm(A*X*E'+E*X*A')/max(1,norm(X))/norm(A) < reltol &&
Expand Down
7 changes: 7 additions & 0 deletions test/test_dplyap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,13 @@ X = U*U'; @test norm(A*X*A'-E*X*E'+R*R')/max(1,norm(X))/norm(A) < reltol &&
norm(A*U-E*U*β)/max(1,norm(U))/norm(A) < reltol &&
norm(E*U*α - R)/max(1,norm(R)) < reltol

U = copy(R)
Q = qr(rand(2,2)).Q; A1 = Q*A; E1 = Q*E;
β, α = MatrixEquations.pglyap2!(A1, E1, U, adj = false, disc = true)
X = U*U'; @test norm(A1*X*A1'-E1*X*E1'+R*R')/max(1,norm(X))/norm(A) < reltol &&
norm(A1*U-E1*U*β)/max(1,norm(U))/norm(A) < reltol &&
norm(E1*U*α - R)/max(1,norm(R)) < reltol

U = copy(0*R)
β, α = MatrixEquations.pglyap2!(A, E, U, adj = false, disc = true)
X = U*U'; @test norm(A*X*E'+E*X*A')/max(1,norm(X))/norm(A) < reltol &&
Expand Down

2 comments on commit 1db52d2

@andreasvarga
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/25167

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.2.1 -m "<description of version>" 1db52d211da18aff644d2cfd34595b97dc90d4e5
git push origin v1.2.1

Please sign in to comment.