Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a seed for rand in a Lapack test (fix #24155) #24211

Merged
merged 1 commit into from
Oct 20, 2017
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
16 changes: 9 additions & 7 deletions test/linalg/lapack.jl
Original file line number Diff line number Diff line change
Expand Up @@ -425,13 +425,15 @@ end

@testset "sysv" begin
@testset for elty in (Float32, Float64, Complex64, Complex128)
A = rand(elty,10,10)
A = A + A.' #symmetric!
b = rand(elty,10)
c = A \ b
b,A = LAPACK.sysv!('U',A,b)
@test b ≈ c
@test_throws DimensionMismatch LAPACK.sysv!('U',A,rand(elty,11))
guardsrand(123) do
A = rand(elty,10,10)
A = A + A.' #symmetric!
b = rand(elty,10)
c = A \ b
b,A = LAPACK.sysv!('U',A,b)
@test b ≈ c
@test_throws DimensionMismatch LAPACK.sysv!('U',A,rand(elty,11))
end
end
end

Expand Down