Skip to content

Commit

Permalink
Loosen test tolerance when testing lu with BigFloats
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasnoack committed Jun 7, 2021
1 parent 66c3375 commit 7e5726e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/LinearAlgebra/test/lu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dimg = randn(n)/2
else
convert(Tridiagonal{eltya}, Tridiagonal(dlreal, dreal, dureal))
end
ε = εa = eps(abs(float(one(eltya))))
εa = eps(abs(float(one(eltya))))

if eltya <: BlasFloat
@testset "LU factorization for Number" begin
Expand Down Expand Up @@ -71,7 +71,7 @@ dimg = randn(n)/2
# test conversion of LU factorization's numerical type
bft = eltya <: Real ? LinearAlgebra.LU{BigFloat} : LinearAlgebra.LU{Complex{BigFloat}}
bflua = convert(bft, lua)
@test bflua.L*bflua.U big.(a)[p,:] rtol=ε
@test bflua.L*bflua.U big.(a)[p,:] rtol=εa*norm(a)
@test Factorization{eltya}(lua) === lua
# test Factorization with different eltype
if eltya <: BlasReal
Expand Down

0 comments on commit 7e5726e

Please sign in to comment.