_AbstractMassMatrix#

class hmclab.MassMatrices._AbstractMassMatrix[source]#

Bases: abc.ABC

Abstract base class for mass matrices.

Defines all required methods for derived classes.

__init__()#

Methods

__init__

create_default

full_name

generate_momentum

kinetic_energy

Abstract method for computing kinetic energy for a given momentum.

kinetic_energy_gradient

Abstract method for computing kinetic energy gradient for a given momentum.

Attributes

dimensions

name

rng

abstract kinetic_energy(momentum: numpy.ndarray) float[source]#

Abstract method for computing kinetic energy for a given momentum.

Parameters

momentum

abstract kinetic_energy_gradient(momentum: numpy.ndarray) numpy.ndarray[source]#

Abstract method for computing kinetic energy gradient for a given momentum.

Parameters

momentum