Hamiltonian

class HamiltonianDynamic.Hamiltonian(modules)[source]

Class used to represent the hamiltonian given by a collection of modules.

__call__()[source]

Computes the hamiltonian.

Mathematicaly, computes the quantity \(\mathcal{H}(q, p, h)\).

Returns

Scalar tensor representing the hamiltonian quantity.

Return type

torch.Tensor

__init__(modules)[source]

Instantiate the Hamiltonian related to a set of deformation module.

Parameters

modules (Iterable or DeformationModules.DeformationModule) – Either an iterable of deformation modules or an unique module.

property dim
classmethod from_hamiltonian(class_instance)[source]
geodesic_controls()[source]

Computes the geodesic controls of the hamiltonian’s module.

property module