Diagonal#
- class hmclab.MassMatrices.Diagonal(diagonal: numpy.ndarray, rng: Optional[numpy.random._generator.Generator] = None)[source]#
Bases:
hmclab.MassMatrices._AbstractMassMatrix
The diagonal mass matrix.
This mass matrix or metric does only performs scaling on each dimension separately. It is optimal when all parameters of your target distribution are expected to be independent (not have trade-offs) but still varying scales of disperion / variance.
- __init__(diagonal: numpy.ndarray, rng: Optional[numpy.random._generator.Generator] = None)[source]#
Constructor for diagonal mass matrices.
Methods
Constructor for diagonal mass matrices.
create_default
full_name
- param momentum
- param momentum
Attributes
dimensions
matrix
name
rng