Skip to content

Commit 6bdb1d5

Browse files
author
Katharine Hyatt
committed
Fix eigh_trunc
1 parent 0cab2e8 commit 6bdb1d5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/testsuite/eigh.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ function test_eigh_trunc(
7272
)
7373
summary_str = testargs_summary(T, sz)
7474
return @testset "eigh_trunc! $summary_str" begin
75-
A = project_hermitian!(instantiate_matrix(T, sz))
75+
A = instantiate_matrix(T, sz)
76+
A = A * A'
77+
A = project_hermitian!(A)
7678
Ac = deepcopy(A)
7779
if !(T <: Diagonal)
7880
@@ -148,7 +150,9 @@ function test_eigh_trunc_algs(
148150
)
149151
summary_str = testargs_summary(T, sz)
150152
return @testset "eigh_trunc! algorithm $alg $summary_str" for alg in algs
151-
A = project_hermitian!(instantiate_matrix(T, sz))
153+
A = instantiate_matrix(T, sz)
154+
A = A * A'
155+
A = project_hermitian!(A)
152156
Ac = deepcopy(A)
153157
154158
m = size(A, 1)

0 commit comments

Comments
 (0)