Skip to content

Commit 2841304

Browse files
committed
attempt to improve cond precision in test
1 parent 4911dc4 commit 2841304

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎test/factorizations/svd.jl‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ for V in spacelist
4949
end
5050
for T in eltypes, t in (rand(T, W, W), rand(T, W, W)')
5151
project_hermitian!(t)
52-
vals = @constinferred LinearAlgebra.eigvals(t)
53-
λmax = maximum(s -> maximum(abs, s), values(vals))
54-
λmin = minimum(s -> minimum(abs, s), values(vals))
52+
vals = @constinferred eigh_vals(t)
53+
λmax = maximum(abs, vals)
54+
λmin = minimum(abs, vals)
5555
@test cond(t) ≈ λmax / λmin
5656
end
5757
end

0 commit comments

Comments
 (0)