Skip to content

Commit

Permalink
Loosen test of Cholesky factorization of diagonal matrices to approxi…
Browse files Browse the repository at this point in the history
…mate (JuliaLang#34859)

equality since BLAS and Julia might use square roots that round differently.
This has occasionally caused CI failures.
  • Loading branch information
andreasnoack committed Feb 26, 2020
1 parent 0fe45ef commit 434c6bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/LinearAlgebra/test/cholesky.jl
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ end
CD = cholesky(D)
CM = cholesky(Matrix(D))
@test CD isa Cholesky{Float64}
@test CD.U == Diagonal(.√d) == CM.U
@test CD.U Diagonal(.√d) CM.U
@test D CD.L * CD.U
@test CD.info == 0

Expand All @@ -352,7 +352,7 @@ end
CD = cholesky(D)
CM = cholesky(Matrix(D))
@test CD isa Cholesky{Complex{Float64}}
@test CD.U == Diagonal(.√d) == CM.U
@test CD.U Diagonal(.√d) CM.U
@test D CD.L * CD.U
@test CD.info == 0

Expand Down

0 comments on commit 434c6bb

Please sign in to comment.