-
Notifications
You must be signed in to change notification settings - Fork 4
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
Missing methods erf(x, RoundUp) #4
Comments
I am not sure I understand what this part does: for f in (:erf, :erfc)
@eval function($f)(x::BigFloat, r::RoundingMode)
setrounding(BigFloat, r) do
($f)(x)
end
end
@eval ($f)(a::Interval{Float64}) = convert(Interval{Float64}, ($f)(big53(a)))
end Was this not supposed to define the versions of the functions for all rounding modes? |
Yes, but in line 3 you can see that it only does it for |
It uses metaprogramming to automate the generation instead of repeating very similar code twice. |
The metaprogramming part was quite clear, but I am not sure about the Would it be better to use a parametric type instead of |
As far as I remember / can see, we have correctly rounded functions only for BigFloat. |
We're missing methods like
erf(x, RoundUp)
.cc @SebastianM-C
The text was updated successfully, but these errors were encountered: