autoppl  v0.8
A C++ template library for probabilistic programming
leapfrog.hpp File Reference
#include <fastad>

Go to the source code of this file.

Namespaces

 ppl
 
 ppl::mcmc
 

Functions

template<class ADExprType , class MatType >
double ppl::mcmc::reset_autodiff (ADExprType &ad_expr, Eigen::MatrixBase< MatType > &adjoints, Eigen::MatrixBase< MatType > &tp_adjoints)
 
template<class ADExprType , class MatType , class MomentumHandlerType >
double ppl::mcmc::leapfrog (ADExprType &ad_expr, Eigen::MatrixBase< MatType > &theta, Eigen::MatrixBase< MatType > &theta_adj, Eigen::MatrixBase< MatType > &tp_adj, Eigen::MatrixBase< MatType > &r, const MomentumHandlerType &m_handler, double epsilon, bool reuse_adj)