Skip to content

Commit 5c9cebd

Browse files
committed
provide rtol instead
1 parent 79d87f6 commit 5c9cebd

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/lapack.jl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -676,14 +676,13 @@ end
676676
@testset "posv and some errors for friends" begin
677677
@testset for elty in (Float32, Float64, ComplexF32, ComplexF64)
678678
local n = 10
679-
Random.seed!(123)
680-
A = randn(elty,n,n)
681-
A = A'*A
682-
B = rand(elty,n,n)
679+
a = randn(elty, n, n)
680+
A = a'*a
681+
B = rand(elty, n, n)
683682
D = copy(A)
684683
C = copy(B)
685-
D,C = LAPACK.posv!('U',D,C)
686-
@test A\B C
684+
D, C = LAPACK.posv!('U', D, C)
685+
@test A\B C rtol=cond(A)*eps(real(elty))
687686
offsizemat = Matrix{elty}(undef, n+1, n+1)
688687
@test_throws DimensionMismatch LAPACK.posv!('U', D, offsizemat)
689688
@test_throws DimensionMismatch LAPACK.potrs!('U', D, offsizemat)

0 commit comments

Comments
 (0)