We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79d87f6 commit 5c9cebdCopy full SHA for 5c9cebd
test/lapack.jl
@@ -676,14 +676,13 @@ end
676
@testset "posv and some errors for friends" begin
677
@testset for elty in (Float32, Float64, ComplexF32, ComplexF64)
678
local n = 10
679
- Random.seed!(123)
680
- A = randn(elty,n,n)
681
- A = A'*A
682
- B = rand(elty,n,n)
+ a = randn(elty, n, n)
+ A = a'*a
+ B = rand(elty, n, n)
683
D = copy(A)
684
C = copy(B)
685
- D,C = LAPACK.posv!('U',D,C)
686
- @test A\B ≈ C
+ D, C = LAPACK.posv!('U', D, C)
+ @test A\B ≈ C rtol=cond(A)*eps(real(elty))
687
offsizemat = Matrix{elty}(undef, n+1, n+1)
688
@test_throws DimensionMismatch LAPACK.posv!('U', D, offsizemat)
689
@test_throws DimensionMismatch LAPACK.potrs!('U', D, offsizemat)
0 commit comments