Skip to content

Commit f7c947e

Browse files
committed
Don't Float32-result in massof for BATDistMeasure
static(1.0) and true always promote to Float64 under log, etc.
1 parent af4d69c commit f7c947e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/measures/bat_dist_measure.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ MeasureBase.getdof(m::BATDistMeasure) = eff_totalndof(m.dist)
1717
MeasureBase.rootmeasure(::BATDistMeasure{<:Distribution{Univariate,Continuous}}) = MeasureBase.LebesgueBase()
1818
MeasureBase.rootmeasure(m::BATDistMeasure{<:Distribution{Multivariate,Continuous}}) = MeasureBase.LebesgueBase() ^ size(m.dist)
1919

20-
MeasureBase.massof(::BATDistMeasure) = static(1.0)
20+
MeasureBase.massof(::BATDistMeasure) = 1.0f0
2121

2222

2323
function DensityInterface.logdensityof(m::BATDistMeasure{<:Distribution{Univariate,Continuous}}, v::Real)

0 commit comments

Comments
 (0)