From 8306b9cc77d006f2662d9bbd95e1bdd890cf5be2 Mon Sep 17 00:00:00 2001 From: Hong Ge <3279477+yebai@users.noreply.github.com> Date: Thu, 2 Nov 2023 18:26:26 +0000 Subject: [PATCH] Update constructors.jl --- src/constructors.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/constructors.jl b/src/constructors.jl index 72feb300..af82d6b2 100644 --- a/src/constructors.jl +++ b/src/constructors.jl @@ -8,7 +8,7 @@ in favour of determined types from the other arguments. """ determine_sampler_eltype(xs...) = float(_determine_sampler_eltype(xs...)) # NOTE: We want to defer conversion to `float` until the very "end" of the -# process, so as to allow `promote_type` to do it's job properly. +# process to allow `promote_type` to do its job properly. # For example, in the scenario `determine_sampler_eltype(::Int64, ::Float32)` # we want to return `Float32`, not `Float64`. The latter would occur # if we did `float(eltype(x))` instead of just `eltype(x)`. @@ -49,7 +49,7 @@ Note that all the fields have the prefix `initial_` to indicate that these will not necessarily correspond to the `kernel`, `metric`, and `adaptor` after sampling. -To access the updated fields use the resulting [`AdvancedHMC.HMCState`](@ref). +To access the updated fields, use the resulting [`HMCState`](@ref). """ struct HMCSampler{K<:AbstractMCMCKernel,M<:AbstractMetric,A<:AbstractAdaptor} <: AbstractHMCSampler