Skip to content

Commit

Permalink
Update src/hamiltonian.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 1c06c3a commit d0087a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hamiltonian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ end
∂H∂r(h::Hamiltonian{<:DenseEuclideanMetric,<:GaussianKinetic}, r::AbstractVecOrMat) =
h.metric.M⁻¹ * r

# TODO make the order of θ and r consistent with neg_energy
# TODO add stricter types to block hamiltonian.jl#L37 from working on unknown metric/kinetic
# TODO (kai) make the order of θ and r consistent with neg_energy
# TODO (kai) add stricter types to block hamiltonian.jl#L37 from working on unknown metric/kinetic
∂H∂θ(h::Hamiltonian, θ::AbstractVecOrMat, r::AbstractVecOrMat) = ∂H∂θ(h, θ)
∂H∂r(h::Hamiltonian, θ::AbstractVecOrMat, r::AbstractVecOrMat) = ∂H∂r(h, r)

Expand Down

0 comments on commit d0087a1

Please sign in to comment.