autoppl  v0.8
A C++ template library for probabilistic programming
ppl::mcmc::MomentumHandler< unit_var > Struct Reference

#include <momentum_handler.hpp>

Public Types

using adapter_policy_t = unit_var
 

Public Member Functions

 MomentumHandler (size_t=0)
 
template<class MatType , class GenType >
void sample (Eigen::MatrixBase< MatType > &rho, GenType &gen)
 
template<class MatType >
double kinetic (const Eigen::MatrixBase< MatType > &rho) const
 
template<class MatType >
const MatType & dkinetic_dr (const MatType &rho) const
 

Detailed Description

Unit variance with no adaptation.

Member Typedef Documentation

◆ adapter_policy_t

Constructor & Destructor Documentation

◆ MomentumHandler()

Member Function Documentation

◆ dkinetic_dr()

template<class MatType >
const MatType& ppl::mcmc::MomentumHandler< unit_var >::dkinetic_dr ( const MatType &  rho) const
inline

◆ kinetic()

template<class MatType >
double ppl::mcmc::MomentumHandler< unit_var >::kinetic ( const Eigen::MatrixBase< MatType > &  rho) const
inline

Compute corresponding kinetic energy

◆ sample()

template<class MatType , class GenType >
void ppl::mcmc::MomentumHandler< unit_var >::sample ( Eigen::MatrixBase< MatType > &  rho,
GenType &  gen 
)
inline

The documentation for this struct was generated from the following file: