Skip to content

Commit

Permalink
Relax test tolerance (#24256)
Browse files Browse the repository at this point in the history
This fix a test failure on aarch64 due to a real part of half ulp.
  • Loading branch information
yuyichao authored and andreasnoack committed Oct 25, 2017
1 parent 306c02c commit 88f7729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/linalg/dense.jl
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ end
@test coth(acoth(coth(A))) coth(A)

# Definition of principal values (Aprahamian & Higham, 2016, pp. 4-5)
abstol = 1e-8 * norm(acosh(A))
abstol = sqrt(eps(real(elty))) * vecnorm(acosh(A))
@test all(z -> (0 < real(z) < π ||
abs(real(z)) < abstol && imag(z) >= 0 ||
abs(real(z) - π) < abstol && imag(z) <= 0),
Expand Down

0 comments on commit 88f7729

Please sign in to comment.