-
Notifications
You must be signed in to change notification settings - Fork 71
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
Update 1.0-dev with some commits from master (not in #271) #514
Conversation
(Based on 1e1dad2) * Fix cancelminus * Add few tests related with one corner case mentioned in the standard
Sure, no problem. The documentation for |
(Based on a cherry-pick from 8b8f44e)
... instead of test_broken for a linear algebra test
@lbenet I think PR now fullfills its purpose, which was incorporating into the dev branch the changes in master that weren't there. I would suggest to merge this and investigate the test failure(s) in separate PRs |
@lbenet Not explicitly. What I did is trust that if all tests pass, then I had taken everything into account properly while rebasing. Since thread safety is hard to test, it may have slipped through. It should definitely be ported though.
There are still a bunch of places where |
I think it works fine, though I recall having seen those two |
Thanks for the observation! I'll clean those left-overs later today, or maybe tomorrow. |
and implement a suggestion by @gwater
@@ -220,7 +220,7 @@ Create an equivalent `BigFloat` interval to a given `AbstractFloat` interval. | |||
""" | |||
function bigequiv(a::Interval{T}) where {T <: AbstractFloat} | |||
lock(precision_lock) do | |||
return setprecision(precision(T)) do # precision of T | |||
setprecision(precision(T)) do # precision of T | |||
return Interval{BigFloat}(a) |
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.
If we dont need the return statements above that we can drop this return statement, too.
@lucaferranti Ok, I'll go ahead and merge this into the 1.0-dev branch. Some of the tests that are broken I'll address them in another PR. |
This includes the latest commits in master, and #414. It still needs to upgrade changes introduced in #420.
Question: @Kolaru Did you think about including #420 into #271? Or why it shouldn't be ported?
@gwater Can you help clarifying the changes you proposed in #420, so we can port them? As a very short summary of related changes made in #271, there is no
IntervalParameters
struct anymore, and no extension ofsetprecision
; everything is relying at the moment onsetprecision
andprecision
from Base.This work was done together with @lucaferranti