You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to test somehow that logdensity does not needlessly promote. e.g. if the measure's parameters have a real eltype of Float32, and so does the test value, then logdensity should not promote to Float64.
The text was updated successfully, but these errors were encountered:
cscherrer
changed the title
It would be useful to test somehow that logdensity does not needlessly promote. e.g. if the measure's parameters have a real eltype of Float32, and so does the test value, then logdensity should not promote to Float64.
Extend testvalue with a ::Type argument
Aug 15, 2021
Originally posted by @sethaxen in #137 (comment)
We should add methods so that for any measure
d
,logdensity(d, testvalue(d)) isa Float64
logdensity(d, testvalue(T, d)) isa T
The text was updated successfully, but these errors were encountered: