File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -183,20 +183,19 @@ function logdensity_at(
183183end
184184
185185"""
186- LogDensityAt(
187- x::AbstractVector,
188- model::Model,
189- varinfo::AbstractVarInfo,
190- context::AbstractContext
186+ LogDensityAt{M<:Model,V<:AbstractVarInfo,C<:AbstractContext}(
187+ model::M
188+ varinfo::V
189+ context::C
191190 )
192191
193192A callable struct that serves the same purpose as `x -> logdensity_at(x, model,
194193varinfo, context)`.
195194"""
196- struct LogDensityAt
197- model:: Model
198- varinfo:: AbstractVarInfo
199- context:: AbstractContext
195+ struct LogDensityAt{M <: Model ,V <: AbstractVarInfo ,C <: AbstractContext }
196+ model:: M
197+ varinfo:: V
198+ context:: C
200199end
201200function (ld:: LogDensityAt )(x:: AbstractVector )
202201 varinfo_new = unflatten (ld. varinfo, x)
You can’t perform that action at this time.
0 commit comments