-
Notifications
You must be signed in to change notification settings - Fork 71
Another rounding option #370
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
Conversation
|
Great news, thanks! |
|
In my initial tests this is very promising indeed, thanks @matsueushi! I think we should just make this the default option. |
src/intervals/rounding.jl
Outdated
| end | ||
|
|
||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add inline comment to clarify what's going on in there ? (after some research in RoundingEmulator.jl doc I think I get it, but future us will probably be thankful to have a bit of inline doc here)
|
If it solves a bug (even a very unlikely one), we should definitely use this as the default. Is there a reason to keep the It looks like this implementation is falling back to the Finally it would be good to document the rounding mode, at least in the header of the |
|
Thanks @Kolaru, I added comments to rounding.jl. In my understanding, the arithmetic operations provided by |
|
The difficult-to-read, opaque, brittle, generally disgusting and undocumented code in If anybody has a suggestion for how to clean it up, that would be great. |
|
I think this is almost ready to be merged. Although I wonder if we should actually bump the minor version number since changing to |
|
Then can we rename the |
|
Yes, great idea! |
|
I renamed rounding modes and bumped version. |
|
I think we should bump a new minor version once this is merged. Thanks @matsueushi , really great contribution! |
|
I found the lower bound of julia compat in Project.toml of |
|
Yes I think IntervalArithmetic.jl still in principle supports 1.1 and higher? I seem to remember that there was a change which means that it does not work with Julia 1.0.5; I think it was the removal of |
|
Can I increase the lower bound to Julia 1.3 and bump the minor version instead of the patch version? If we support 1.2, I need to make a change on |
|
Yes go ahead. And could you please bump Recipesbase to 1.0 as well? |
|
Thanks. I'll update Recipesbase and add some comments to NEWS.md. |
|
Done. I also bumped Polynomials to 0.7 because 0.6 is incompatible with RecipeBase 1.0. |
|
Thanks very much for this great contribution @matsueushi. If nobody has any objections, I'll merge it soon. |
|
I'm definitely in favor! |
|
Many thanks @matsueushi! |
Ref #215. I added a new rounding option using RoundingEmulator.jl as
:emulationfor testing purposes. I switched the rounding mode in the test scripts from:tightto:emulationand ran all tests, then it worked fine on my Travis builds. Please let me know if I'm missing something.@dpsanders @krish8484