Skip to content

Commit

Permalink
fix: arg order (#349)
Browse files Browse the repository at this point in the history
Co-authored-by: Kai Xu <me@xuk.ai>
  • Loading branch information
xukai92 and xukai92 authored Sep 6, 2023
1 parent 1dff529 commit 04ce92a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion research/src/riemannian_hmc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ phasepoint(
θ::T,
r::T;
ℓπ = ∂H∂θ(h, θ),
ℓκ = DualValue(neg_energy(h, r, θ), ∂H∂r(h, r, θ)),
ℓκ = DualValue(neg_energy(h, r, θ), ∂H∂r(h, θ, r)),
) where {T<:AbstractVecOrMat} = PhasePoint(θ, r, ℓπ, ℓκ)

# Negative kinetic energy
Expand Down

0 comments on commit 04ce92a

Please sign in to comment.