-
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
Add specialize logdensityof
directly where applicable?
#59
Comments
Great! I'm all in favor of optimizations like this. We should try to make it apply as often as possible. In methods like HMC, we associate to each measure We could also add a method logdensity_def(::StdNormal, ::Lebesgue) = - muladd(x, x, log2π) / 2 though ideally we could get performance for both cases while adding only one method. |
Ok, I'll do some more benchmarking ... :-) |
In some cases, we'd gain performance by specializing
logdensityof
directly:The text was updated successfully, but these errors were encountered: