Skip to content

Commit 4170ac3

Browse files
committed
small test fix
1 parent 2011261 commit 4170ac3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/projections.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,13 @@ const BLASFloats = (Float32, Float64, ComplexF32, ComplexF64)
4747
# test approximate error calculation
4848
A = normalize!(randn(rng, T, m, m))
4949
Ah = project_hermitian(A)
50+
Aa = project_antihermitian(A)
51+
5052
Ah_approx = Ah + noisefactor * Aa
5153
ϵ = norm(project_antihermitian(Ah_approx))
5254
@test !ishermitian(Ah_approx; atol = (999 // 1000) * ϵ)
5355
@test ishermitian(Ah_approx; atol = (1001 // 1000) * ϵ)
5456

55-
Aa = project_antihermitian(A)
5657
Aa_approx = Aa + noisefactor * Ah
5758
ϵ = norm(project_hermitian(Aa_approx))
5859
@test !isantihermitian(Aa_approx; atol = (999 // 1000) * ϵ)

0 commit comments

Comments
 (0)