@@ -193,21 +193,21 @@ end
193193# LogDensityProblems.jl interface #
194194# ##################################
195195"""
196- fast_ldf_accs (getlogdensity::Function)
196+ ldf_accs (getlogdensity::Function)
197197
198198Determine which accumulators are needed for fast evaluation with the given
199199`getlogdensity` function.
200200"""
201- fast_ldf_accs (:: Function ) = default_accumulators ()
202- fast_ldf_accs (:: typeof (getlogjoint_internal)) = default_accumulators ()
203- function fast_ldf_accs (:: typeof (getlogjoint))
201+ ldf_accs (:: Function ) = default_accumulators ()
202+ ldf_accs (:: typeof (getlogjoint_internal)) = default_accumulators ()
203+ function ldf_accs (:: typeof (getlogjoint))
204204 return AccumulatorTuple ((LogPriorAccumulator (), LogLikelihoodAccumulator ()))
205205end
206- function fast_ldf_accs (:: typeof (getlogprior_internal))
206+ function ldf_accs (:: typeof (getlogprior_internal))
207207 return AccumulatorTuple ((LogPriorAccumulator (), LogJacobianAccumulator ()))
208208end
209- fast_ldf_accs (:: typeof (getlogprior)) = AccumulatorTuple ((LogPriorAccumulator (),))
210- fast_ldf_accs (:: typeof (getloglikelihood)) = AccumulatorTuple ((LogLikelihoodAccumulator (),))
209+ ldf_accs (:: typeof (getlogprior)) = AccumulatorTuple ((LogPriorAccumulator (),))
210+ ldf_accs (:: typeof (getloglikelihood)) = AccumulatorTuple ((LogLikelihoodAccumulator (),))
211211
212212struct LogDensityAt{M<: Model ,F<: Function ,N<: NamedTuple }
213213 model:: M
@@ -219,7 +219,7 @@ function (f::LogDensityAt)(params::AbstractVector{<:Real})
219219 strategy = InitFromParams (
220220 VectorWithRanges (f. iden_varname_ranges, f. varname_ranges, params), nothing
221221 )
222- accs = fast_ldf_accs (f. getlogdensity)
222+ accs = ldf_accs (f. getlogdensity)
223223 _, vi = DynamicPPL. init!! (f. model, OnlyAccsVarInfo (accs), strategy)
224224 return f. getlogdensity (vi)
225225end
0 commit comments