Skip to content

Commit c9ad828

Browse files
authored
Fix #1164 - flaky posv test (#1166)
Fix #1164 cc @stevengj
2 parents 443aa0f + 106da87 commit c9ad828

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

test/lapack.jl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -676,13 +676,8 @@ end
676676
@testset "posv and some errors for friends" begin
677677
@testset for elty in (Float32, Float64, ComplexF32, ComplexF64)
678678
local n = 10
679-
A = rand(elty,n,n)/100
680-
A += real(diagm(0 => n*real(rand(elty,n))))
681-
if elty <: Complex
682-
A = A + A'
683-
else
684-
A = A + transpose(A)
685-
end
679+
A = randn(elty,n,n)
680+
A = A'*A
686681
B = rand(elty,n,n)
687682
D = copy(A)
688683
C = copy(B)

0 commit comments

Comments
 (0)