Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prevfloat and nextfloat rules #163

Merged
merged 2 commits into from
Dec 21, 2020
Merged

Conversation

ChrisRackauckas
Copy link
Member

No description provided.

@codecov-io
Copy link

Codecov Report

Merging #163 (38775a6) into master (ff978e6) will decrease coverage by 0.10%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #163      +/-   ##
==========================================
- Coverage   82.57%   82.46%   -0.11%     
==========================================
  Files          18       18              
  Lines        1555     1557       +2     
==========================================
  Hits         1284     1284              
- Misses        271      273       +2     
Impacted Files Coverage Δ
src/derivatives/scalars.jl 96.49% <0.00%> (-3.51%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ff978e6...38775a6. Read the comment docs.

@@ -116,3 +116,6 @@ end
end
return nothing
end

Base.prevfloat(r::ReverseDiff.TrackedReal) = r - eps(ReverseDiff.value(r))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for ReverseDiff. inside ReverseDiff ;)

@ChrisRackauckas ChrisRackauckas merged commit f1f0bd1 into master Dec 21, 2020
@ChrisRackauckas ChrisRackauckas deleted the ChrisRackauckas-patch-2 branch December 21, 2020 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants