Skip to content

Commit

Permalink
Update src/metric.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Hong Ge <[email protected]>
  • Loading branch information
xukai92 and yebai authored Jul 5, 2024
1 parent eb50e04 commit a4ade29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metric.jl
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ end

# TODO The rand interface should be updated as "rand from momentum distribution + optional affine transformation by metric"
# ignore θ by default unless defined by the specific kinetic (i.e. not position-dependent)
Base.rand(rng::AbstractRNG, metric::AbstractMetric, kinetic::AbstractKinetic, ) =
Base.rand(rng::AbstractRNG, metric::AbstractMetric, kinetic::AbstractKinetic, θ) =
_rand(rng, metric, kinetic) # this disambiguity is required by Random.rand
Base.rand(
rng::AbstractVector{<:AbstractRNG},
Expand Down

0 comments on commit a4ade29

Please sign in to comment.