Skip to content

Commit 542b594

Browse files
committed
ulp_error_maximum: use Fix1
As suggested by devmotion on a PR to LogExpFunctions.jl: * JuliaStats/LogExpFunctions.jl#99
1 parent 4788669 commit 542b594

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/testhelpers/ULPError.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ module ULPError
4242
ulp_error(func BigFloat, func, x)
4343
end
4444
function ulp_error_maximum(func::Func, iterator) where {Func}
45-
function f(x::AbstractFloat)
46-
ulp_error(func, x)
47-
end
48-
maximum(f, iterator)
45+
maximum(Base.Fix1(ulp_error, func), iterator)
4946
end
5047
end

0 commit comments

Comments
 (0)