Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions test/lapack.jl
Original file line number Diff line number Diff line change
Expand Up @@ -676,13 +676,13 @@ end
@testset "posv and some errors for friends" begin
@testset for elty in (Float32, Float64, ComplexF32, ComplexF64)
local n = 10
A = randn(elty,n,n)
A = A'*A
B = rand(elty,n,n)
a = randn(elty, n, n)
A = a'*a
B = rand(elty, n, n)
D = copy(A)
C = copy(B)
D,C = LAPACK.posv!('U',D,C)
@test A\B ≈ C
D, C = LAPACK.posv!('U', D, C)
@test A\B ≈ C rtol=cond(A)*eps(real(elty))
offsizemat = Matrix{elty}(undef, n+1, n+1)
@test_throws DimensionMismatch LAPACK.posv!('U', D, offsizemat)
@test_throws DimensionMismatch LAPACK.potrs!('U', D, offsizemat)
Expand Down