We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44d51c7 commit 6bd1531Copy full SHA for 6bd1531
src/Statistics.jl
@@ -1035,9 +1035,9 @@ end
1035
@assert n > 0 # this case should never happen here
1036
1037
m = alpha + p * (one(alpha) - alpha - beta)
1038
- # Using muladd here avoids some rounding errors when aleph is an integer
+ # Using fma here avoids some rounding errors when aleph is an integer
1039
# The use of oftype supresses the promotion caused by alpha and beta
1040
- aleph = muladd(n, p, oftype(p, m))
+ aleph = fma(n, p, oftype(p, m))
1041
j = clamp(trunc(Int, aleph), 1, n - 1)
1042
γ = clamp(aleph - j, 0, 1)
1043
0 commit comments