Skip to content

Commit 840cd2d

Browse files
committed
Fix for compilation
1 parent 6421310 commit 840cd2d

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

src/riemannian/hamiltonian.jl

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -154,16 +154,6 @@ function ∂H∂r(
154154
return G \ r
155155
end
156156

157-
# Non-keyword version for backward compatibility with integrator
158-
function ∂H∂r(
159-
h::Hamiltonian{<:AbstractRiemannianMetric,<:GaussianKinetic},
160-
θ::AbstractVector,
161-
r::AbstractVector,
162-
)
163-
G_eval = metric_eval(h.metric, θ)
164-
return G_eval \ r
165-
end
166-
167157
####
168158
#### Negative energy (log probability)
169159
####
@@ -200,16 +190,6 @@ function neg_energy(
200190
return -logZ - quadform / 2
201191
end
202192

203-
# Non-keyword version for backward compatibility
204-
function neg_energy(
205-
h::Hamiltonian{<:AbstractRiemannianMetric,<:GaussianKinetic},
206-
r::AbstractVector,
207-
θ::AbstractVector,
208-
)
209-
G_eval = metric_eval(h.metric, θ)
210-
return neg_energy(h, r, θ; G_eval=G_eval)
211-
end
212-
213193
####
214194
#### Phase point construction
215195
####

src/riemannian/metric.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import LinearAlgebra
2+
13
####
24
#### Riemannian Metric Types
35
####

0 commit comments

Comments
 (0)