Skip to content

Commit

Permalink
EuclideanIntegrator -> Integrator (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
albcab committed Nov 12, 2023
1 parent df5414e commit 16df9a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions blackjax/mcmc/integrators.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class IntegratorState(NamedTuple):
logdensity_grad: ArrayTree


EuclideanIntegrator = Callable[[IntegratorState, float], IntegratorState]
Integrator = Callable[[IntegratorState, float], IntegratorState]


def new_integrator_state(logdensity_fn, position, momentum):
Expand All @@ -46,7 +46,7 @@ def new_integrator_state(logdensity_fn, position, momentum):
def velocity_verlet(
logdensity_fn: Callable,
kinetic_energy_fn: EuclideanKineticEnergy,
) -> EuclideanIntegrator:
) -> Integrator:
"""The velocity Verlet (or Verlet-Störmer) integrator.
The velocity Verlet is a two-stage palindromic integrator :cite:p:`bou2018geometric` of the form
Expand Down Expand Up @@ -105,7 +105,7 @@ def one_step(state: IntegratorState, step_size: float) -> IntegratorState:
def mclachlan(
logdensity_fn: Callable,
kinetic_energy_fn: Callable,
) -> EuclideanIntegrator:
) -> Integrator:
"""Two-stage palindromic symplectic integrator derived in :cite:p:`blanes2014numerical`.
The integrator is of the form (b1, a1, b2, a1, b1). The choice of the parameters
Expand Down Expand Up @@ -170,7 +170,7 @@ def one_step(state: IntegratorState, step_size: float) -> IntegratorState:
def yoshida(
logdensity_fn: Callable,
kinetic_energy_fn: Callable,
) -> EuclideanIntegrator:
) -> Integrator:
"""Three stages palindromic symplectic integrator derived in :cite:p:`mclachlan1995numerical`
The integrator is of the form (b1, a1, b2, a2, b2, a1, b1). The choice of
Expand Down

0 comments on commit 16df9a6

Please sign in to comment.