1 #ifndef STAN_MCMC_HMC_HAMILTONIANS_DENSE_E_POINT_HPP
2 #define STAN_MCMC_HMC_HAMILTONIANS_DENSE_E_POINT_HPP
23 :
ps_point(z), mInv(z.mInv.rows(), z.mInv.cols()) {
24 fast_matrix_copy_<double>(
mInv, z.
mInv);
29 writer(
"Elements of inverse mass matrix:");
30 std::stringstream mInv_ss;
31 for (
int i = 0; i < mInv.rows(); ++i) {
33 mInv_ss <<
mInv(i, 0);
34 for (
int j = 1; j < mInv.cols(); ++j)
35 mInv_ss <<
", " <<
mInv(i, j);
36 writer(mInv_ss.str());
Probability, optimization and sampling library.
Point in a generic phase space.
dense_e_point(const dense_e_point &z)
void write_metric(stan::interface_callbacks::writer::base_writer &writer)
Writes the metric.
base_writer is an abstract base class defining the interface for Stan writer callbacks.
Point in a phase space with a base Euclidean manifold with dense metric.