#include <diagConstMetric.h>
Public Member Functions | |
diagConstMetric (int dim) | |
double | T () |
Return the kinetic energy. | |
void | evolveQ (const double epsilon) |
Evolve the position through some time epsilon. | |
void | bounceP (const VectorXd &normal) |
VectorXd & | massInv () |
Return mass matrix. | |
void | sampleP (Random &random) |
Protected Attributes | |
VectorXd | mMassInv |
Inverse mass matrix. |
Abstract base class defining the interface for a Hamiltonian with quadratic kinetic energy defined on a Euclidean manifold with diagonal metric.
diagConstMetric::diagConstMetric | ( | int | dim | ) | [explicit] |
Constructor
dim | Dimension of the target space |
void diagConstMetric::bounceP | ( | const VectorXd & | normal | ) | [virtual] |
Evolve the momentum through a bounce off of a constraint surface
normal | Vector normal to constraint surface |
Implements baseHamiltonian.
void diagConstMetric::sampleP | ( | Random & | random | ) | [virtual] |
Sample the momentum from the conditional distribution
random | External RandomLib generator |
Implements baseHamiltonian.