From 7b9255dd41e830e45380eed825a70e3835d912d5 Mon Sep 17 00:00:00 2001 From: Oliver Schulz Date: Mon, 4 Nov 2024 14:58:13 +0100 Subject: [PATCH] Don't Float32-result in massof for BATDistMeasure static(1.0) and true always promote to Float64 under log, etc. --- src/measures/bat_dist_measure.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/measures/bat_dist_measure.jl b/src/measures/bat_dist_measure.jl index 5742b144c..b9d3bcb79 100644 --- a/src/measures/bat_dist_measure.jl +++ b/src/measures/bat_dist_measure.jl @@ -17,7 +17,7 @@ MeasureBase.getdof(m::BATDistMeasure) = eff_totalndof(m.dist) MeasureBase.rootmeasure(::BATDistMeasure{<:Distribution{Univariate,Continuous}}) = MeasureBase.LebesgueBase() MeasureBase.rootmeasure(m::BATDistMeasure{<:Distribution{Multivariate,Continuous}}) = MeasureBase.LebesgueBase() ^ size(m.dist) -MeasureBase.massof(::BATDistMeasure) = static(1.0) +MeasureBase.massof(::BATDistMeasure) = 1.0f0 function DensityInterface.logdensityof(m::BATDistMeasure{<:Distribution{Univariate,Continuous}}, v::Real)