Skip to content

Commit

Permalink
Better condition LAPACK least squares solver test matrices to avoid C…
Browse files Browse the repository at this point in the history
…I failures.
  • Loading branch information
Sacha0 committed Dec 28, 2017
1 parent 1a6e34b commit ae6fa20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/linalg/lapack.jl
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ end

@testset "gelsy, gelsd" begin
@testset for elty in (Float32, Float64, ComplexF32, ComplexF64)
A = rand(elty,10,10)
B = rand(elty,10,10)
A = rand(elty, 10, 10)
B = rand(elty, 10, 10)
C, j = LAPACK.gelsd!(copy(A),copy(B))
D, k = LAPACK.gelsy!(copy(A),copy(B))
@test C D
@test C D rtol=eps(cond(A))
@test_throws DimensionMismatch LAPACK.gelsd!(A,rand(elty,12,10))
@test_throws DimensionMismatch LAPACK.gelsy!(A,rand(elty,12,10))
end
Expand Down

0 comments on commit ae6fa20

Please sign in to comment.