-
Notifications
You must be signed in to change notification settings - Fork 33
isapprox
does not handle typemin(::FixedPoint{<:Signed})
correctly
#209
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
Comments
This seems to be omitted by the compiler, but The current constructor is basically based on
I plan to partially support the constructors with |
BTW, the tolerance in cf. |
What's your plan for eliminating the performance hit?
Probably not. As you deduced, it likely didn't follow changes in Julia itself. |
It is to give up.:sweat_smile: In any case, we haven't reached the stage of deciding that yet. PR #190 is just a small step. For this issue, since |
Just FYI, JuliaImages couldn't tolerate a big performance hit. We'd have to fork the package and go our own way. |
When was that? We still have things to do. Arithmetic performance in JuliaImages should strongly depend on |
I meant, "couldn't" in the sense of "would not be able to," not something that happened in the past. Meaning, if arithmetic suddenly got 5x slower that wouldn't be something we'd be happy about. I suppose it would be worth checking to see how often it actually comes up. In many applications we probably multiply by a float first, at which point it leaves the domain of FPN. |
For example,
The direct cause is an overflow within
abs
.FixedPointNumbers.jl/src/FixedPointNumbers.jl
Lines 93 to 97 in 3e41a6a
I don't think this is a critical issue, but I plan to add
checked_abs
/saturating_abs
after PR #190. Also, in the future, the default arithmetic may be changed to the checked arithmetic.The text was updated successfully, but these errors were encountered: