ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
hmc.cpp File Reference

(Last Changed on June 29, 2022 for git-revision be1526a357a87937cf302cae3cdbcf78712362c7.)

This file was copied from hybmcmc.cpp to use as a template to create updated Hamiltonian Monte Carlo samplers (static HMC and No-u-turn). More...

#include "admodel.h"
#include <ctime>

Go to the source code of this file.

Functions

void read_empirical_covariance_matrix (int nvar, const dmatrix &S, const adstring &prog_name)
 Reads the covariance matrix from a file, which is the program name prepended to the extension '.ecm'. More...
 
void read_hessian_matrix_and_scale1 (int nvar, const dmatrix &_SS, double s, int mcmc2_flag)
 

Detailed Description

This file was copied from hybmcmc.cpp to use as a template to create updated Hamiltonian Monte Carlo samplers (static HMC and No-u-turn).

Author
Cole Monnahan

Definition in file hmc.cpp.

Function Documentation

void read_empirical_covariance_matrix ( int  nvar,
const dmatrix S,
const adstring prog_name 
)

Reads the covariance matrix from a file, which is the program name prepended to the extension '.ecm'.

Parameters
intnvar
dmatrix&S
adstring&prog_name
Returns
Nothing, but S has been assigned to the contents of the file.

Definition at line 961 of file xxmcmc.cpp.

Referenced by function_minimizer::hybrid_mcmc_routine(), function_minimizer::mcmc_routine(), and function_minimizer::rwm_mcmc_routine().

void read_hessian_matrix_and_scale1 ( int  nvar,
const dmatrix _SS,
double  s,
int  mcmc2_flag 
)