Skip to content

Commit

Permalink
Update constructors.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
yebai authored Nov 2, 2023
1 parent a0cbfdb commit 8306b9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/constructors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)`.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8306b9c

Please sign in to comment.