Skip to content

Commit 33ea65b

Browse files
authored
Merge pull request #111 from mschauer/timebound
Dimension-free local bound time-validity
2 parents 1a750f3 + a215e22 commit 33ea65b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ZigZagBoomerang"
22
uuid = "36347407-b186-4a6a-8c98-4f4567861712"
33
authors = ["Sebastiano Grazzi and Moritz Schauer"]
4-
version = "0.12.0"
4+
version = "0.12.1"
55

66
[deps]
77
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"

src/not_fact_samplers.jl

+2-3
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ function ab(x, θ, C::GlobalBound, ∇ϕx, v, B::BouncyParticle)
2727
(C.c + θ'*(B.Γ*(x-B.μ)), θ'*(B.Γ*θ), Inf)
2828
end
2929
function ab(x, θ, C::LocalBound, ∇ϕx::AbstractVector, v, B::BouncyParticle)
30-
(C.c + dot(θ, ∇ϕx), v, 2.0/C.c/norm(θ, Inf))
30+
(C.c + dot(θ, ∇ϕx), v, 2sqrt(length(θ))/C.c/norm(θ, 2))
3131
end
3232
function ab(x, θ, C::LocalBound, vdϕ::Number, v, B::BouncyParticle)
3333
@assert vdϕ isa Number
34-
(C.c + vdϕ, v, 2.0/C.c/norm(θ, Inf))
34+
(C.c + vdϕ, v, 2sqrt(length(θ))/C.c/norm(θ, 2))
3535
end
3636

3737
function ab(x, θ, C::GlobalBound, ∇ϕx, v, B::Boomerang)
@@ -186,7 +186,6 @@ function pdmp_inner!(rng, dϕ::F1, ∇ϕ!::F2, ∇ϕx, t, x, θ, c::Bound, abc,
186186
c *= factor
187187
end
188188
∇ϕ!(∇ϕx, t, x, args...)
189-
@assert dot(θ, ∇ϕx) θdϕ
190189
if oscn
191190
@assert Flow.L == I
192191
oscn!(rng, θ, ∇ϕx, Flow.ρ; normalize=false)

0 commit comments

Comments
 (0)